Skip to content

Commit

Permalink
[FEAT] changing the base image to distroless
Browse files Browse the repository at this point in the history
[FEAT] changing the base image to distroless
  • Loading branch information
nicolastakashi authored Dec 28, 2021
2 parents 6387fbc + 9439a4d commit 6c17767
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.1.0
6 changes: 2 additions & 4 deletions build/package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ COPY --chown=cole:cole . .

RUN make all

FROM golang:latest as runtime

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

WORKDIR /cole

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

USER cole
USER nobody

ENTRYPOINT [ "/bin/cole" ]

0 comments on commit 6c17767

Please sign in to comment.