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
|
2022-10-23 14:11:15 +02:00
|
|
|
RUN rm -rf /usr/share/nginx/html/*
|
2022-10-20 17:50:50 +02:00
|
|
|
COPY ./dist/kdb-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;'"
|