Skip to content

Commit

Permalink
[FEAT] changing docker image to distroless
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolastakashi committed Sep 27, 2022
1 parent 499a0bb commit 036a011
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ COPY --chown=gitana:gitana . .

RUN make all

FROM golang:latest as runtime

RUN useradd -ms /bin/bash gitana
FROM gcr.io/distroless/static:latest-amd64

WORKDIR /gitana

COPY --from=build /go/src/github.com/nicolastakashi/gitana/bin/* /bin/

USER gitana
USER nobody

ENTRYPOINT [ "/bin/gitana" ]
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.1
1.5.0

0 comments on commit 036a011

Please sign in to comment.