diff --git a/flaskapp/nginx/Dockerfile b/flaskapp/nginx/Dockerfile new file mode 100644 index 0000000..4fa411a --- /dev/null +++ b/flaskapp/nginx/Dockerfile @@ -0,0 +1,16 @@ +FROM alpine:latest + +LABEL MAINTAINER="FirstName LastName " + +RUN apk --update add nginx && \ + ln -sf /dev/stdout /var/log/nginx/access.log && \ + ln -sf /dev/stderr /var/log/nginx/error.log && \ + mkdir /etc/nginx/sites-enabled/ && \ + mkdir -p /run/nginx && \ + rm -rf /etc/nginx/conf.d/default.conf && \ + rm -rf /var/cache/apk/* + +COPY conf.d/app.conf /etc/nginx/conf.d/app.conf + +EXPOSE 80 443 +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file