Implemented basic env var stuff
This commit is contained in:
@@ -14,4 +14,5 @@ RUN npm run build
|
||||
|
||||
# Stage 2: Package up with the webserver
|
||||
FROM nginx:alpine AS final
|
||||
COPY --from=build /build/dist/frontend /usr/share/nginx/html
|
||||
COPY --from=build /build/dist/frontend /usr/share/nginx/html
|
||||
CMD ["/bin/sh", "-c", "envsubst < /usr/share/nginx/html/assets/env.template.js > /usr/share/nginx/html/assets/env.js && exec nginx -g 'daemon off;'"]
|
||||
Reference in New Issue
Block a user