Skip to content

Commit

Permalink
fix: docker image working
Browse files Browse the repository at this point in the history
  • Loading branch information
brittonhayes committed Mar 2, 2022
1 parent 0a6afe4 commit 228f1be
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
FROM golang:1.17-alpine AS build
FROM golang:1.17-alpine

WORKDIR /src/
COPY . /src/
RUN CGO_ENABLED=0 go build -v -o /bin/pillager cmd/pillager/main.go

FROM scratch as prod

LABEL author="Britton Hayes"
LABEL github="https://github.com/brittonhayes/pillager"

COPY --from=build /bin/pillager /bin/pillager
ENTRYPOINT ["/bin/pillager"]

CMD [ "/bin/pillager" ]

0 comments on commit 228f1be

Please sign in to comment.