Remove tusd user
This commit is contained in:
parent
a7f2d8cdd2
commit
cb040c9afd
|
@ -21,7 +21,7 @@ spec:
|
||||||
memory: "2Gi"
|
memory: "2Gi"
|
||||||
requests:
|
requests:
|
||||||
cpu: 0.5
|
cpu: 0.5
|
||||||
memory: "1Gi"
|
memory: "1Gi"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|
|
@ -5,9 +5,7 @@ COPY . /go/src/github.com/tus/tusd/
|
||||||
|
|
||||||
# Create app directory
|
# Create app directory
|
||||||
|
|
||||||
RUN addgroup -g 1000 tusd \
|
RUN cd /go/src/github.com/tus/tusd \
|
||||||
&& adduser -u 1000 -G tusd -s /bin/sh -D tusd \
|
|
||||||
&& cd /go/src/github.com/tus/tusd \
|
|
||||||
&& apk add --no-cache \
|
&& apk add --no-cache \
|
||||||
git \
|
git \
|
||||||
&& go get -d -v ./... \
|
&& go get -d -v ./... \
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
chown tusd:tusd /srv/tusd-data
|
/go/bin/tusd -dir /srv/tusd-data --hooks-dir /srv/tusd-hooks
|
||||||
chown tusd:tusd /srv/tusd-hooks
|
|
||||||
/go/bin/tusd -dir /srv/tusd-dat --hooks-dir /srv/tusd-hooks
|
|
Loading…
Reference in New Issue