Skip to content

Commit

Permalink
Fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
EAddario committed Mar 15, 2021
1 parent e969781 commit 4eb1e8f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/erised/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
FROM golang:buster AS build
WORKDIR /go/src/app
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN go build -o /go/bin/erised -ldflags "-s -w"

FROM gcr.io/distroless/base-debian10
COPY --from=build /go/bin/erised /
EXPOSE 8080

CMD ["/erised"]
ENTRYPOINT ["/erised"]
CMD [""]

0 comments on commit 4eb1e8f

Please sign in to comment.