Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
p-shubh authored Jun 26, 2024
1 parent cb255e6 commit 181ab82
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:alpine as builder
WORKDIR /app
COPY go.mod .
COPY go.sum .
RUN apk add --no-cache build-base openssl
RUN go mod download
COPY . .
RUN apk add --no-cache git && go build -o myriadflow_gateway . && apk del git
FROM alpine
WORKDIR /app
RUN apk add --no-cache openssl
COPY --from=builder /app/myriadflow_gateway .
CMD [ "./myriadflow_gateway" ]

0 comments on commit 181ab82

Please sign in to comment.