use npm run to run container

This commit is contained in:
2021-01-25 14:29:13 +11:00
parent d272bd0ece
commit 0bf22b33b1
2 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ spec:
secretKeyRef: { name: github-credentials, key: clientSecret },
}
ports:
- containerPort: 80
- containerPort: 3000
name: ui-port
protocol: TCP
resources:
+3 -7
View File
@@ -7,11 +7,7 @@ COPY . /app
RUN apk update \
&& apk add --no-cache git python alpine-sdk\
&& npm ci \
&& npm run generate
&& npm install --production \
&& npm run build
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD [ "npm", "start" ]