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.
20 lines
725 B
Docker
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"]
|