Skip to content

Commit

Permalink
fix(Dockerfile): Build stripe-mock binary inside docker instead of co…
Browse files Browse the repository at this point in the history
…pying from host (#430)
  • Loading branch information
ashokkjag committed Jun 27, 2023
1 parent 6099c69 commit 12d28f7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# -*- mode: dockerfile -*-

FROM golang:alpine as builder
WORKDIR /app
COPY . .

RUN go build -mod=vendor -o stripe-mock

FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY stripe-mock /bin/stripe-mock
COPY --from=builder /app/stripe-mock /bin/stripe-mock
ENTRYPOINT ["/bin/stripe-mock", "-http-port", "12111", "-https-port", "12112"]
EXPOSE 12111
EXPOSE 12112

0 comments on commit 12d28f7

Please sign in to comment.