From bb28be740835c37d994f9d485542ed5d7d651cb7 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Mon, 25 Jan 2021 14:44:56 +1100 Subject: [PATCH] refine dockerfile --- manifest.yaml | 4 ++-- www/Dockerfile | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/manifest.yaml b/manifest.yaml index bf8d129..00cb4ad 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -108,10 +108,10 @@ spec: protocol: TCP resources: requests: - cpu: 50m + cpu: 100m memory: 100Mi limits: - cpu: 100m + cpu: 200m memory: 256Mi imagePullSecrets: - name: regcred diff --git a/www/Dockerfile b/www/Dockerfile index c6d6aa0..981965e 100644 --- a/www/Dockerfile +++ b/www/Dockerfile @@ -7,7 +7,8 @@ COPY . /app RUN apk update \ && apk add --no-cache git python alpine-sdk\ - && npm install --ci \ - && npm run build + && npm ci \ + && npm run build \ + && npm run generate CMD [ "npm", "start" ]