chatpad/Dockerfile

19 lines
510 B
Text
Raw Permalink Normal View History

2023-03-26 20:46:18 +00:00
FROM nginx:alpine
2023-03-18 13:36:45 +00:00
# Copy the nginx configuration
COPY ./docker/default.conf.template /etc/nginx/templates/default.conf.template
2024-02-05 23:41:07 +00:00
# Copy the entrypoint substitution script
COPY ./docker/configure.sh /docker-entrypoint.d/99-configure.sh
RUN chmod +x /docker-entrypoint.d/99-configure.sh
2023-03-18 13:36:45 +00:00
# Copy the built react application to the nginx folder
2023-03-26 20:26:43 +00:00
COPY ./dist /usr/share/nginx/html
2023-03-18 13:36:45 +00:00
# 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