From cb040c9afd8164aa18b4033deabfff1c49506586 Mon Sep 17 00:00:00 2001 From: kiloreux Date: Thu, 4 Jan 2018 17:51:27 +0100 Subject: [PATCH] Remove tusd user --- .infra/kube/deployment.yaml | 2 +- Dockerfile | 4 +--- entrypoint.sh | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.infra/kube/deployment.yaml b/.infra/kube/deployment.yaml index 36cdf08..06c87d3 100644 --- a/.infra/kube/deployment.yaml +++ b/.infra/kube/deployment.yaml @@ -21,7 +21,7 @@ spec: memory: "2Gi" requests: cpu: 0.5 - memory: "1Gi" + memory: "1Gi" ports: - containerPort: 8080 securityContext: diff --git a/Dockerfile b/Dockerfile index b1d937e..2c05a41 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 ./... \ diff --git a/entrypoint.sh b/entrypoint.sh index a7cb06f..156c413 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 \ No newline at end of file +/go/bin/tusd -dir /srv/tusd-data --hooks-dir /srv/tusd-hooks \ No newline at end of file