Commit 4dd614cf authored by Aaron Yildiztas's avatar Aaron Yildiztas
Browse files

added log command to let container to share logs

parent dbbf0b2d
FROM ubuntu FROM ubuntu
LABEL maintainer="Aaron Yildiztas (yildiztasmusa@gmail.com)" LABEL maintainer="Aaron Yildiztas (yildiztasmusa@gmail.com)"
RUN apt-get update && apt-get install -y nginx RUN apt-get update && apt-get install -y nginx
RUN ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log
EXPOSE 80 EXPOSE 80
ENTRYPOINT ["/usr/sbin/nginx", "-g", "daemon off;"] ENTRYPOINT ["/usr/sbin/nginx", "-g", "daemon off;"]
\ No newline at end of file
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