Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
Simplify Dockerfile
Browse files Browse the repository at this point in the history
Thanks to goreleaser we can just copy the binary into the image instead
of building it.
  • Loading branch information
stanislavb committed Mar 5, 2022
1 parent c0aa5fe commit 8d4401e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
FROM golang:1.17-alpine as builder
WORKDIR /go/src/couchlock
RUN apk --no-cache add git
COPY *.go go.mod ./
RUN go build -v

FROM alpine:3.13
RUN apk --no-cache add ca-certificates
COPY --from=builder /go/src/couchlock/couchlock /usr/bin/

ENTRYPOINT ["couchlock"]
COPY couchlock /usr/bin/
ENTRYPOINT ["/usr/bin/couchlock"]

0 comments on commit 8d4401e

Please sign in to comment.