-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (37 loc) · 1.06 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM php:7.4-fpm-alpine3.16
LABEL org.opencontainers.image.authors="Frank Morgner <[email protected]>" \
org.opencontainers.image.title="dev-www" \
org.opencontainers.image.description="Development environment for php based applications" \
org.opencontainers.image.version="7.4-0" \
org.opencontainers.image.source=""
ENV APP_HOME=/app \
APP_USER=dev \
TIME_ZONE=Europe/Berlin \
SMTP_NAME=dev-smtp \
SMTP_HOST="" \
SMTP_PORT=25
RUN apk add --update --no-cache \
apache2-utils \
bash \
less \
mysql-client \
netcat-openbsd \
nginx \
openssh-client \
rsync \
supervisor \
tzdata \
&& (rm "/tmp/"* 2>/dev/null || true) && (rm -rf /var/cache/apk/* 2>/dev/null || true) \
&& pear config-set http_proxy "$HTTP_PROXY"
COPY ./docker/init /tmp/init
COPY ./docker/build /tmp/build
RUN chmod 755 /tmp/init \
&& /tmp/init \
&& rm -rf /tmp/build
COPY docker/run /tmp/run
COPY docker/entrypoint /tmp/entrypoint
RUN chmod 755 /tmp/entrypoint
EXPOSE 80 443
VOLUME ["/app"]
ENTRYPOINT ["/tmp/entrypoint"]
CMD ["run"]