Skip to content

Commit 138444a

Browse files
committed
New docker file
1 parent 7e43dd1 commit 138444a

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

Dockerfile

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
# -*- mode: dockerfile -*-
22

3-
FROM alpine:latest
3+
FROM golang:1.16-alpine
4+
5+
ENV GO111MODULE=on
6+
47
RUN apk --no-cache add ca-certificates
5-
COPY stripe-mock /bin/stripe-mock
6-
ENTRYPOINT ["/bin/stripe-mock", "-http-port", "12111", "-https-port", "12112"]
8+
9+
WORKDIR /app
10+
11+
COPY . .
12+
13+
RUN go mod download
14+
15+
RUN go build -o /stripe-mock
16+
17+
ENTRYPOINT ["/stripe-mock", "-http-port", "12111", "-https-port", "12112"]
718
EXPOSE 12111
819
EXPOSE 12112

0 commit comments

Comments
 (0)