&& 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
&& 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
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
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