sh_discord_bot/web/dockerfile

8 lines
326 B
Plaintext
Raw Normal View History

2022-10-20 17:50:50 +02:00
FROM nginx:alpine
2023-01-09 10:23:06 +01:00
COPY nginx.conf.template /etc/nginx/conf.d/nginx.conf.template
RUN rm -rf /usr/share/nginx/html/*
2023-10-15 11:31:28 +02:00
COPY ./dist/web/ /usr/share/nginx/html
2023-01-09 10:23:06 +01:00
RUN apk update
RUN apk add bash
CMD /bin/bash -c "envsubst '\$BOT_CONTAINER_NAME' < /etc/nginx/conf.d/nginx.conf.template > /etc/nginx/nginx.conf; nginx -g 'daemon off;'"