Try to use node to serve website

This commit is contained in:
2020-12-06 08:02:22 +11:00
parent 2a4f361a02
commit b958324af0
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ metadata:
spec:
type: ClusterIP
ports:
- port: 80
- port: 3000
targetPort: ui-port
protocol: TCP
name: ui
+5 -2
View File
@@ -8,10 +8,13 @@ COPY . /app
RUN apk update \
&& apk add --no-cache git python alpine-sdk\
&& npm ci \
&& npm run build \
&& npm run generate
FROM nginx:alpine
# FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
# COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 3000
CMD [ "npm", "run", "start" ]