init: nginx
This commit is contained in:
14
srcs/nginx/Dockerfile
Normal file
14
srcs/nginx/Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
FROM alpine:3.18.4
|
||||
|
||||
RUN apk update
|
||||
RUN apk add nginx
|
||||
|
||||
RUN adduser -D -g 'www' www
|
||||
|
||||
RUN mkdir /www
|
||||
RUN chown -R www:www /var/lib/nginx
|
||||
RUN chown -R www:www /www
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
ENTRYPOINT ["nginx"]
|
Reference in New Issue
Block a user