open-redirect/web/dockerfile
edraft 7b62022a83
Some checks failed
Test before pr merge / test-lint (pull_request) Failing after 1m4s
Test before pr merge / test-translation-lint (pull_request) Failing after 32s
Test before pr merge / test-before-merge (pull_request) Failing after 1m27s
Updated build
2025-04-18 11:15:15 +02:00

12 lines
439 B
Plaintext

FROM nginx:alpine
COPY nginx.conf.template /etc/nginx/conf.d/nginx.conf.template
RUN rm -rf /usr/share/nginx/html/*
COPY ./dist/open-redirect/browser/ /usr/share/nginx/html
RUN apk update
RUN apk add bash
ARG VERSION
RUN echo "{\"version\": \"${VERSION}\"}" > /usr/share/nginx/html/assets/version.json
CMD /bin/bash -c "envsubst '\$CONTAINER_NAME' < /etc/nginx/conf.d/nginx.conf.template > /etc/nginx/nginx.conf; nginx -g 'daemon off;'"