Skip to content

Commit

Permalink
Nginx logs to stdout for Docker Alpine images
Browse files Browse the repository at this point in the history
  • Loading branch information
angristan committed Mar 11, 2018
1 parent 39ee939 commit 017baf5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
4 changes: 3 additions & 1 deletion docker/alpine/Dockerfile.armhf.latest
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ RUN curl -L https://github.com/shaarli/Shaarli/archive/latest.tar.gz | tar xzf -
&& cd shaarli \
&& composer --prefer-dist --no-dev install \
&& rm -rf ~/.composer \
&& chown -R nginx:nginx .
&& chown -R nginx:nginx . \
&& ln -sf /dev/stdout /var/log/nginx/shaarli.access.log \
&& ln -sf /dev/stderr /var/log/nginx/shaarli.error.log

VOLUME /var/www/shaarli/data

Expand Down
4 changes: 3 additions & 1 deletion docker/alpine/Dockerfile.armhf.master
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ RUN curl -L https://github.com/shaarli/Shaarli/archive/master.tar.gz | tar xzf -
&& cd shaarli \
&& composer --prefer-dist --no-dev install \
&& rm -rf ~/.composer \
&& chown -R nginx:nginx .
&& chown -R nginx:nginx . \
&& ln -sf /dev/stdout /var/log/nginx/shaarli.access.log \
&& ln -sf /dev/stderr /var/log/nginx/shaarli.error.log

VOLUME /var/www/shaarli/data

Expand Down
5 changes: 4 additions & 1 deletion docker/alpine/Dockerfile.latest
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ RUN rm -rf /etc/php7/php-fpm.d/www.conf \
WORKDIR /var/www
COPY --from=composer /app/shaarli shaarli

RUN chown -R nginx:nginx .
RUN chown -R nginx:nginx . \
&& ln -sf /dev/stdout /var/log/nginx/shaarli.access.log \
&& ln -sf /dev/stderr /var/log/nginx/shaarli.error.log

VOLUME /var/www/shaarli/data

EXPOSE 80
Expand Down
5 changes: 4 additions & 1 deletion docker/alpine/Dockerfile.master
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ RUN rm -rf /etc/php7/php-fpm.d/www.conf \
WORKDIR /var/www
COPY --from=composer /app/shaarli shaarli

RUN chown -R nginx:nginx .
RUN chown -R nginx:nginx . \
&& ln -sf /dev/stdout /var/log/nginx/shaarli.access.log \
&& ln -sf /dev/stderr /var/log/nginx/shaarli.error.log

VOLUME /var/www/shaarli/data

EXPOSE 80
Expand Down

0 comments on commit 017baf5

Please sign in to comment.