PromucFlow_constructor/app/client/Dockerfile
Shrikant Sharat Kandula 3adfaa5872
Include a default value for server proxy pass (#7042)
The env variable APPSMITH_SERVER_PROXY_PASS is missing a default value, and the start script in client image requires this. But since this env variable is not set on any _existing_ installations, they will break. So to fix that, we are adding an initial value to this variable to a sensible default.
2021-09-06 12:25:31 +05:30

20 lines
725 B
Docker

FROM nginx:1.20-alpine
COPY ./build /var/www/appsmith
EXPOSE 80
ENV APPSMITH_SERVER_PROXY_PASS="http://appsmith-internal-server:8080"
# This is the default nginx template file inside the container.
# This is replaced by the install.sh script during a deployment
# COPY ./docker/templates/nginx-app.conf.template /nginx.conf.template
COPY ./docker/templates/nginx-root.conf.template /nginx-root.conf.template
COPY ./docker/templates/nginx-app-http.conf.template /etc/nginx/templates/
COPY ./docker/templates/nginx-app-https.conf.template /nginx-app-https.conf.template
# This is the script that is used to start Nginx when the Docker container starts
COPY ./docker/start-nginx.sh /start-nginx.sh
CMD ["/start-nginx.sh"]