Skip to content

Commit

Permalink
fix: dockerfile dev (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdh committed Aug 4, 2022
1 parent 5b09e6d commit 591ea0d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ COPY . .

RUN make build

FROM alpine:3.15
COPY --from=builder /go/src/app/shield /usr/local/bin/
ENTRYPOINT [ "shield" ]
FROM alpine:3.16
COPY --from=builder /go/src/app/shield /usr/bin/
RUN apk update
RUN apk add ca-certificates

# glibc compatibility library, since go binaries
# don't work well with musl libc that alpine uses
RUN apk add libc6-compat

CMD ["shield", "serve"]

0 comments on commit 591ea0d

Please sign in to comment.