Skip to content

Commit

Permalink
Add new dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
gmontalvoy committed Dec 6, 2023
1 parent 2ed657e commit d0f786d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM golang:1.18 as builder

WORKDIR /app

COPY . .

RUN go build -o main .

FROM alpine:latest

WORKDIR /root/

COPY --from=builder /app/main .

EXPOSE 8080

CMD ["./main"]

0 comments on commit d0f786d

Please sign in to comment.