Skip to content

Commit f826ae2

Browse files
author
UltimateForm
committed
feat: Add Dockerfile for multi-stage build and containerization of the gopen-api application
1 parent 91d73c0 commit f826ae2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM golang:1.24.13-alpine3.22 AS build
2+
3+
COPY . /app
4+
WORKDIR /app
5+
RUN go build -o gopen-api
6+
7+
FROM alpine:3.22 AS run
8+
COPY --from=build /app/gopen-api /app/gopen-api
9+
WORKDIR /app
10+
CMD ["./gopen-api"]

0 commit comments

Comments
 (0)