diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index 20d04665547ae1cf265771b1eb44c2d1d60611b4..f221af3c72a6ab1d9dd43994679da415eacf6778 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -61,7 +61,7 @@ spec: emptyDir: {} - name: vendor emptyDir: {} - - name: css + - name: public emptyDir: {} - name: packages persistentVolumeClaim: @@ -70,12 +70,12 @@ spec: - name: {{ .Chart.Name }}-nodejs image: {{ template "imagename" . }} imagePullPolicy: {{ .Values.image.pullPolicy }} - command: ['sh', '-c', 'npm i --cache .npm --prefer-offline --no-audit --progress=false && npm run prod'] + command: ['sh', '-c', 'npm i --cache .npm --prefer-offline --no-audit --progress=false && npm run prod && cp -a ./node_modules/. && cp -a ./public/. /public/'] volumeMounts: - mountPath: /html/node_modules name: node-modules - - mountPath: /html/public/css - name: css + - mountPath: /public + name: public - mountPath: /html/.npm name: packages subPath: .npm @@ -109,8 +109,8 @@ spec: name: node-modules - mountPath: /html/vendor name: vendor - - mountPath: /html/public/css - name: css + - mountPath: /html/public + name: public {{- if .Values.lifecycle }} lifecycle: {{ toYaml .Values.lifecycle | indent 10 }} @@ -149,8 +149,8 @@ spec: name: node-modules - mountPath: /html/vendor name: vendor - - mountPath: /html/public/css - name: css + - mountPath: /html/public + name: public ports: - name: "{{ .Values.service.name }}" containerPort: {{ .Values.service.internalPort }} @@ -197,8 +197,8 @@ spec: name: node-modules - mountPath: /html/vendor name: vendor - - mountPath: /html/public/css - name: css + - mountPath: /html/public + name: public livenessProbe: exec: command: