Fixes Docker Angular Build Process

This commit is contained in:
2023-10-11 19:56:06 -03:00
parent a03fc7e09e
commit 26e942a532
9 changed files with 22 additions and 181 deletions

View File

@@ -3,9 +3,13 @@ FROM node:18-alpine
WORKDIR /app
COPY . .
RUN apk add gettext
RUN npm install
RUN npm install -g @angular/cli@16
RUN ng build --configuration=production
EXPOSE 5000-7000
CMD ng build --configuration=production && npm start
CMD sh -c "envsubst < dist/frontend-hideyoshi.com/assets/env.sample.js > dist/frontend-hideyoshi.com/assets/env.js && npm start"