Skip to content

Commit 6adaf0a

Browse files
authored
Update Dockerfile
1 parent 58c3d99 commit 6adaf0a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ ENV FF_VERSION 4.6.8
55
ENV FF_APP_KEY=SomeRandomStringOf32CharsExactly
66
ENV FF_APP_ENV=production
77

8+
COPY entrypoint.sh /
9+
810
RUN apk update && apk add --no-cache \
911
php7 \
1012
php7-fpm \
@@ -25,12 +27,9 @@ RUN apk update && apk add --no-cache \
2527
supervisor \
2628
gettext \
2729
curl \
28-
nginx
29-
30-
31-
COPY entrypoint.sh /
32-
33-
RUN mkdir -p /var/www/localhost/htdocs/firefly /run/nginx && \
30+
nginx \
31+
tzdata && \
32+
mkdir -p /var/www/localhost/htdocs/firefly /run/nginx && \
3433
curl -sSL https://github.com/firefly-iii/firefly-iii/archive/${FF_VERSION}.tar.gz | tar xz -C /var/www/localhost/htdocs/firefly --strip-components=1 && \
3534
cd /var/www/localhost/htdocs/firefly && \
3635
curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
@@ -39,8 +38,9 @@ RUN mkdir -p /var/www/localhost/htdocs/firefly /run/nginx && \
3938
find /var/www/localhost/htdocs/ -type f -exec chmod 660 {} \; && \
4039
chown -R nginx:nobody /var/www/localhost/htdocs/ && \
4140
chmod +x /entrypoint.sh
41+
4242

43-
RUN mkdir -p /tmp/test && ln -s /var/www/localhost/htdocs/firefly/.env /tmp/test/.env
43+
RUN ln -s /tmp/test/.env /var/www/localhost/htdocs/firefly/.env
4444

4545
COPY custom.conf /etc/nginx/conf.d/default.conf
4646
COPY supervisord.conf /tmp/

0 commit comments

Comments
 (0)