Remove tusd user

This commit is contained in:
kiloreux 2018-01-04 17:51:27 +01:00
parent a7f2d8cdd2
commit cb040c9afd
No known key found for this signature in database
GPG Key ID: 8B81EA3FA91EB758
3 changed files with 3 additions and 7 deletions

View File

@ -21,7 +21,7 @@ spec:
memory: "2Gi"
requests:
cpu: 0.5
memory: "1Gi"
memory: "1Gi"
ports:
- containerPort: 8080
securityContext:

View File

@ -5,9 +5,7 @@ COPY . /go/src/github.com/tus/tusd/
# Create app directory
RUN addgroup -g 1000 tusd \
&& adduser -u 1000 -G tusd -s /bin/sh -D tusd \
&& cd /go/src/github.com/tus/tusd \
RUN cd /go/src/github.com/tus/tusd \
&& apk add --no-cache \
git \
&& go get -d -v ./... \

View File

@ -1,5 +1,3 @@
#!/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
/go/bin/tusd -dir /srv/tusd-data --hooks-dir /srv/tusd-hooks