Files
ai-spel-static/Dockerfile
T
Ein Anderssono 4ebe1bb9ec
Build and publish static assets / publish (push) Failing after 9s
Add static Piper asset service
2026-10-16 07:24:54 +02:00

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