Fixes Docker Angular Build Process
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user