-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dev
35 lines (28 loc) · 877 Bytes
/
Dockerfile.dev
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
FROM php:7.4-fpm-alpine
LABEL authors="Frank Morgner <[email protected]>"
EXPOSE 80
ENV APP_ENV="dev" \
TIMEZONE=${TIMEZONE:-"Europe/Berlin"} \
MYSQL_DATABASE=${MYSQL_DATABASE:-"shortr"} \
MYSQL_USER=${MYSQL_USER:-"shortener"} \
MYSQL_PASSWORD=${MYSQL_PASSWORD:-"changeme"} \
SERVICE_URL=${SERVICE_URL:-"http://localhost"} \
REDIRECT_URL=${REDIRECT_URL:-"http://localhost"} \
JWT_SECRET=""
RUN apk add --update --no-cache \
git \
nginx \
supervisor \
tzdata \
&& (rm "/tmp/"* 2>/dev/null || true) && (rm -rf /var/cache/apk/* 2>/dev/null || true)
COPY ./docker/init /tmp/init
COPY ./docker/build /tmp/build
RUN chmod 755 /tmp/init \
&& /tmp/init \
&& rm -rf /tmp/build
COPY . /var/www/html/
COPY docker/run /tmp/run
COPY docker/entrypoint /tmp/entrypoint
RUN chmod 755 /tmp/entrypoint
ENTRYPOINT ["/tmp/entrypoint"]
CMD ["run"]