Improved docker stuff

This commit is contained in:
Sven Heidemann 2023-01-09 10:23:06 +01:00
parent 9d4cf5a769
commit 9ff9cc672e
4 changed files with 7 additions and 4 deletions

@ -1 +1 @@
Subproject commit 48c2683965611c9a96ebbb908f8dcb4d0d7d71f2 Subproject commit 6b25cc87fced30b5846505d95f20285a3e4d7adf

View File

@ -1,4 +1,7 @@
FROM nginx:alpine FROM nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf COPY nginx.conf.template /etc/nginx/conf.d/nginx.conf.template
RUN rm -rf /usr/share/nginx/html/* RUN rm -rf /usr/share/nginx/html/*
COPY ./dist/kdb-web/ /usr/share/nginx/html COPY ./dist/kdb-web/ /usr/share/nginx/html
RUN apk update
RUN apk add bash
CMD /bin/bash -c "envsubst '\$BOT_CONTAINER_NAME' < /etc/nginx/conf.d/nginx.conf.template > /etc/nginx/nginx.conf; nginx -g 'daemon off;'"

View File

@ -24,7 +24,7 @@ http {
} }
location /api { location /api {
proxy_pass http://kdb_bot_staging_1; proxy_pass http://${BOT_CONTAINER_NAME};
} }
} }
} }

View File

@ -50,4 +50,4 @@
"tslib": "^2.4.1", "tslib": "^2.4.1",
"typescript": "~4.7.2" "typescript": "~4.7.2"
} }
} }