Skip to content

Commit 517866a

Browse files
committed
fix build permissions
1 parent fc7c393 commit 517866a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

server/src/modules/templates/buildpacks.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ spec:
3030
spec:
3131
automountServiceAccountToken: true
3232
securityContext:
33-
fsGroup: 1001
33+
fsGroup: 1000
3434
containers:
3535
- name: deploy
3636
env:
@@ -75,6 +75,19 @@ spec:
7575
- mountPath: /app
7676
name: app-storage
7777
workingDir: /app
78+
- command:
79+
- sh
80+
- -c
81+
- chmod -R g+w /app
82+
image: busybox:latest
83+
imagePullPolicy: IfNotPresent
84+
name: permissions
85+
securityContext:
86+
readOnlyRootFilesystem: true
87+
volumeMounts:
88+
- mountPath: /app
89+
name: app-storage
90+
workingDir: /app
7891
- name: build
7992
args:
8093
- '-app=.'

0 commit comments

Comments
 (0)