- Enable Templating feature as per https://hub.docker.com/_/nginx#using-environment-variables-in-nginx-configuration-new-in-119
- Set default Variables Solution for https://github.com/DuarteSantos8/openGym/issues/99
This commit is contained in:
1 parent
528cb70a79
commit
1ba378b632
3 files changed
+12
-3
No files matched your search
+7
-1
@@ -15,6 +15,12 @@ COPY frontend/ ./
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY web/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY web/nginx.conf.template /etc/nginx/templates/default.conf.template
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
# exercise media (img/gif) is mounted at runtime from the media volume
|
||||
|
||||
# Set Default ENVs for nginx
|
||||
ENV NGINX_PORT=80
|
||||
ENV BACKEND=api
|
||||
ENV PORT=3000
|
||||
|
||||
Reference in new issue
Block a user