Implements Better Env Configuration

This commit is contained in:
2023-10-31 02:12:26 -03:00
parent 31c95bbe46
commit be7e11aba4
4 changed files with 607 additions and 63 deletions

View File

@@ -9,7 +9,7 @@ RUN apk add gettext
RUN npm install
RUN npm install -g @angular/cli@16
RUN ng build --configuration=production
RUN npm run build:prod
EXPOSE 5000-7000
CMD sh -c "envsubst < dist/frontend-hideyoshi.com/assets/env.sample.js > dist/frontend-hideyoshi.com/assets/env.js && npm start"
CMD ["npm", "run", "start:prod"]