Added entrypoint to fix permissions
This commit is contained in:
parent
825e9a835a
commit
2eba9ebeba
|
@ -24,6 +24,8 @@ spec:
|
||||||
memory: "1Gi"
|
memory: "1Gi"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 1000
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: tusd-disk
|
- name: tusd-disk
|
||||||
mountPath: /srv/tusd-data
|
mountPath: /srv/tusd-data
|
||||||
|
|
|
@ -20,7 +20,8 @@ RUN addgroup -g 1000 tusd \
|
||||||
&& rm -r /go/src/* \
|
&& rm -r /go/src/* \
|
||||||
&& apk del git
|
&& apk del git
|
||||||
|
|
||||||
|
COPY entrypoint.sh /srv/entrypoint.sh
|
||||||
WORKDIR /srv/tusd-data
|
WORKDIR /srv/tusd-data
|
||||||
EXPOSE 1080
|
EXPOSE 1080
|
||||||
USER tusd
|
USER tusd
|
||||||
ENTRYPOINT ["/go/bin/tusd","-dir","/srv/tusd-data","--hooks-dir","/srv/tusd-hooks"]
|
ENTRYPOINT ["/srv/entrypoint.sh"]
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
chown tusd:tusd /srv/tusd-data
|
||||||
|
chown tusd:tusd /srv/tusd-hooks
|
||||||
|
/go/bin/tusd -dir /srv/tusd-dat --hooks-dir /srv/tusd-hooks
|
Loading…
Reference in New Issue