first commit
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
FROM golang:1.25-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN go build -mod vendor -o app_api ./main.go
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/app_api .
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["./app_api"]
|
||||
Reference in New Issue
Block a user