Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

Verified Commit 5e575d21 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

make /app dir writable for user

parent 7f201bcc
Pipeline #10422 passed with stages
in 19 minutes and 31 seconds
......@@ -7,8 +7,10 @@ COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/app -a gitlab.switch.ch/memoriav/memobase-2020/services/histogram/cmd/webservice
FROM perl:5.30-slim-buster
RUN useradd -m appuser
RUN groupadd -r appuser && \
chmod -R 770 /app && \
chown -R :appuser /app
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /go/src/gitlab.switch.ch/memoriav/memobase-2020/services/histogram/bin/app /app
COPY --from=builder /etc/passwd /etc/passwd
......@@ -21,7 +23,7 @@ apt-get clean
# ADD convert /usr/bin/
# ADD identify /usr/bin/
USER appuser
USER appuser:appuser
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment