cs141135
3 years ago
1 changed files with 16 additions and 0 deletions
@ -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…
Reference in new issue