-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
28 lines (24 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM fedora:34 as builder
COPY . /code
WORKDIR /code
RUN dnf -y install gettext python3-setuptools python3-pyyaml python3-mako python3-babel python3-pygraphviz && dnf clean all && python3 setup.py install && ./build.sh
FROM fedora:34
COPY --from=builder /code/build /var/www/html/
COPY --from=builder /code/container/l10n.conf /etc/httpd/conf/l10n.conf
COPY container/favicon.xpm /var/www/html/static/image/favicon.xpm
COPY container/whatcanidoforfedora-web.conf /etc/httpd/conf/httpd.conf
RUN dnf -y install httpd && dnf clean all\
&& chown apache:0 /etc/httpd/conf/httpd.conf \
&& chmod g+r /etc/httpd/conf/httpd.conf \
&& chown apache:0 /etc/httpd/conf/l10n.conf \
&& chmod g+r /etc/httpd/conf/l10n.conf \
&& chown apache:0 /var/log/httpd \
&& chmod g+rwX /var/log/httpd \
&& chown apache:0 /var/run/httpd \
&& chmod g+rwX /var/run/httpd\
&& chown -R apache:0 /var/www/html \
&& chmod -R g+rwX /var/www/html
EXPOSE 8080
USER apache
ADD container/container-entrypoint.sh /srv
ENTRYPOINT ["bash", "/srv/container-entrypoint.sh"]