Skip to content
Snippets Groups Projects
Verified Commit e384f445 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Improved dockerfile

parent 00cf7c10
No related branches found
No related tags found
No related merge requests found
Pipeline #2709 passed
/Makefile
/Dockerfile
/.gitlab-ci.yml
/.gitignore
...@@ -16,14 +16,14 @@ RUN apk --no-cache add \ ...@@ -16,14 +16,14 @@ RUN apk --no-cache add \
WORKDIR /go/src/app WORKDIR /go/src/app
COPY go.* ./ COPY go.* ./
RUN go mod download RUN go mod download
COPY . . COPY *.go ./
RUN go build -o app . RUN go build -o app .
FROM alpine:3.15 FROM alpine:3.15
RUN apk --no-cache add imagemagick RUN apk --no-cache add imagemagick
COPY --from=builder /app /app COPY --from=builder /go/src/app /app
RUN addgroup -g 1000 -S app && \ RUN addgroup -g 1000 -S app && \
adduser -u 1000 -S app -G app \ adduser -u 1000 -G app -S app
USER app USER app
ENTRYPOINT ["./app"] ENTRYPOINT ["/app"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment