chore: introduce BACKEND_URL for docker deployment

This commit is contained in:
4gray committed 2023-02-02 22:19:11 +01:00
1 parent 8c1a525001
commit 7a4bce7c31
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -28,4 +28,4 @@ FROM nginx:stable-alpine
COPY --from=build /usr/src/app/dist/ /usr/share/nginx/html
COPY --from=build /usr/src/app/docker/nginx.conf /etc/nginx/conf.d/default.conf
CMD sed -i "s/localhost:3333/localhost:$BACKEND_PORT/g" /usr/share/nginx/html/main.*.js && nginx -g 'daemon off;'
CMD sed -i "s#http://localhost:3333#$BACKEND_URL#g" /usr/share/nginx/html/main.*.js && nginx -g 'daemon off;'