This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
FROM nginxinc/nginx-unprivileged:1.27-alpine
|
||||
|
||||
ARG STATIC_VERSION
|
||||
RUN test -n "$STATIC_VERSION"
|
||||
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||
COPY public/static/ /usr/share/nginx/html/static/
|
||||
USER root
|
||||
RUN printf '%s\n' "$STATIC_VERSION" > /usr/share/nginx/html/static/version.txt && \
|
||||
chmod -R a+rX /usr/share/nginx/html/static
|
||||
USER 101
|
||||
EXPOSE 8080
|
||||
Reference in New Issue
Block a user