Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tnix100 authored Dec 5, 2024
1 parent 7def705 commit 8524c0f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Build stage
FROM golang AS builder
WORKDIR /app
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o PM-BasicApi

# Production stage
FROM alpine
WORKDIR /app
COPY --from=builder /app/PM-BasicApi /app/PM-BasicApi
ENTRYPOINT ["/app/PM-BasicApi"]

0 comments on commit 8524c0f

Please sign in to comment.