Browse Source

Upload files to 'flaskapp/nginx'

master
cs141135 3 years ago
parent
commit
b8acb2c47b
  1. 16
      flaskapp/nginx/Dockerfile

16
flaskapp/nginx/Dockerfile

@ -0,0 +1,16 @@
FROM alpine:latest
LABEL MAINTAINER="FirstName LastName <example@domain.com>"
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;"]
Loading…
Cancel
Save