20 lines
659 B
Docker
20 lines
659 B
Docker
FROM nginx:1.25.3-alpine@sha256:d12e6f7153fae36843aaeed8144c39956698e084e2e898891fa0cc8fe8f6c95c
|
|
|
|
RUN mkdir -p /docroot /var/run \
|
|
&& chgrp -R 0 /etc/nginx \
|
|
&& chmod -R g+rwX /etc/nginx \
|
|
# support running as arbitrary user which belongs to the root group \
|
|
&& chmod g+rwx /var/cache/nginx /var/run /var/log/nginx \
|
|
# comment user directive as master process is run as different user anyhow \
|
|
&& sed -i.bak 's/^user/#user/' /etc/nginx/nginx.conf
|
|
|
|
COPY nginx.vh.default.conf.nginx /etc/nginx/conf.d/default.conf
|
|
COPY build/site /docroot
|
|
|
|
RUN echo ls /usr/share/nginx/html \
|
|
&& ls -lisa /usr/share/nginx/html
|
|
|
|
RUN chown -R nginx: /docroot
|
|
|
|
EXPOSE 8080
|