chatpad/Dockerfile
2024-02-05 18:41:07 -05:00

18 lines
510 B
Docker

FROM nginx:alpine
# Copy the nginx configuration
COPY ./docker/default.conf.template /etc/nginx/templates/default.conf.template
# Copy the entrypoint substitution script
COPY ./docker/configure.sh /docker-entrypoint.d/99-configure.sh
RUN chmod +x /docker-entrypoint.d/99-configure.sh
# Copy the built react application to the nginx folder
COPY ./dist /usr/share/nginx/html
# Required NGINX env variables
ENV NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx/conf.d
# Default env variables
ENV PORT=80
ENV HOST=0.0.0.0