2021-09-02 02:26:40 +00:00
|
|
|
FROM nginx:1.20-alpine
|
2020-03-11 09:24:17 +00:00
|
|
|
|
2020-03-17 18:03:14 +00:00
|
|
|
COPY ./build /var/www/appsmith
|
2020-03-11 09:24:17 +00:00
|
|
|
|
|
|
|
|
EXPOSE 80
|
2021-09-01 11:35:33 +00:00
|
|
|
|
2021-09-06 06:55:31 +00:00
|
|
|
ENV APPSMITH_SERVER_PROXY_PASS="http://appsmith-internal-server:8080"
|
|
|
|
|
|
2021-09-01 11:35:33 +00:00
|
|
|
# This is the default nginx template file inside the container.
|
2020-07-16 06:17:45 +00:00
|
|
|
# This is replaced by the install.sh script during a deployment
|
2021-09-01 11:35:33 +00:00
|
|
|
# COPY ./docker/templates/nginx-app.conf.template /nginx.conf.template
|
2020-10-16 04:30:33 +00:00
|
|
|
COPY ./docker/templates/nginx-root.conf.template /nginx-root.conf.template
|
2021-09-01 11:35:33 +00:00
|
|
|
|
|
|
|
|
COPY ./docker/templates/nginx-app-http.conf.template /etc/nginx/templates/
|
|
|
|
|
COPY ./docker/templates/nginx-app-https.conf.template /nginx-app-https.conf.template
|
|
|
|
|
|
2020-10-16 04:30:33 +00:00
|
|
|
# This is the script that is used to start Nginx when the Docker container starts
|
2020-07-07 10:22:17 +00:00
|
|
|
COPY ./docker/start-nginx.sh /start-nginx.sh
|
|
|
|
|
CMD ["/start-nginx.sh"]
|