-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (34 loc) · 870 Bytes
/
Dockerfile
File metadata and controls
42 lines (34 loc) · 870 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
ARG IMAGE=php
ARG VERSION=8-apache
FROM $IMAGE:$VERSION
LABEL org.opencontainers.image.authors="macwinnie <dev@macwinnie.me>"
# environmental variables
ENV TERM=xterm
ENV DEBIAN_FRONTEND=noninteractive
ENV WORKINGUSER=www-data
ENV PHP_TIMEZONE="Europe/Berlin"
ENV SET_LOCALE="de_DE.UTF-8"
ENV APACHE_LOG_DIR=/var/log/apache2
ENV APACHE_WORKDIR=/var/www/html
ENV PHP_XDEBUG=0
ENV YESWWW=false
ENV NOWWW=false
ENV HTTPS=true
ENV COMPOSER_NO_INTERACTION=1
ENV START_CRON=0
ENV CRON_PATH=/etc/cron.d/docker
ENV NODE_ENV=production
ENV COMPOSER_NO_DEV=1
# expose ports
EXPOSE 80
EXPOSE 443
# copy all relevant files
COPY files/ /
# organise file permissions and run installer
RUN chmod a+x /install.sh && \
/install.sh && \
rm -f /install.sh
WORKDIR ${APACHE_WORKDIR}
# run on every (re)start of container
ENTRYPOINT ["entrypoint"]
CMD ["apache2-foreground"]