Commit 1afa3e5b authored by Tobias Munk's avatar Tobias Munk

fixed log forwarding (taken from original nginx image)

parent d84d5586
Pipeline #16969 passed with stages
in 1 minute and 29 seconds
......@@ -11,6 +11,10 @@ RUN apk --update add nginx
COPY image-files/ /
RUN chown -R www-data:www-data /var/lib/nginx/
# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
CMD ["forego", "start", "-r", "-f", "/root/Procfile"]
EXPOSE 80 443
\ No newline at end of file
......@@ -16,6 +16,10 @@ RUN apt-get update \
# Add configuration files
COPY image-files/ /
# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
CMD ["forego", "start", "-r", "-f", "/root/Procfile"]
EXPOSE 80 443
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment