12 lines
362 B
Docker
12 lines
362 B
Docker
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
|