Skip to content
Snippets Groups Projects
Commit 5237a1c0 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

saving whole public dir

parent d1bb7b66
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !28. Comments created here will be created in the context of that merge request.
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment