File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 3030 terminationGracePeriodSeconds : 10
3131 imagePullSecrets :
3232 - name : diploi-pull-secret
33+ initContainers :
34+ - name : fix-data-perms
35+ image : busybox
36+ command : ["sh", "-c", "chown -R 1000:1000 /data"]
37+ volumeMounts :
38+ - name : ghost-mount
39+ mountPath : /data
40+ securityContext :
41+ runAsUser : 0
3342 containers :
3443 - name : app
3544 image : {{ .Values.images.app }}
Original file line number Diff line number Diff line change @@ -6,10 +6,6 @@ FROM ghost:alpine
66COPY --chown=1000:1000 . /app
77COPY --chown=1000:1000 ./.diploi/diploi-storage-adapter.js /var/lib/ghost/versions/$GHOST_VERSION/core/server/adapters/storage/
88
9- # Initialize the data mount
10- RUN mkdir /data
11- RUN chown 1000:1000 /data
12-
139ENV NODE_ENV=production
1410ENV paths__contentPath=${FOLDER}
1511
Original file line number Diff line number Diff line change @@ -6,10 +6,6 @@ FROM ghost:alpine
66COPY --chown=1000:1000 . /app
77COPY --chown=1000:1000 ./.diploi/diploi-storage-adapter.js /var/lib/ghost/versions/$GHOST_VERSION/core/server/adapters/storage/
88
9- # Initialize the data mount
10- RUN mkdir /data
11- RUN chown 1000:1000 /data
12-
139ENV NODE_ENV=development
1410ENV paths__contentPath=${FOLDER}
1511
You can’t perform that action at this time.
0 commit comments