Skip to content

Commit

Permalink
Add build and run stages to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
burakaktna committed Oct 10, 2024
1 parent de6655c commit 3ce1055
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Build stage
FROM golang:1.20-alpine AS builder

WORKDIR /app
Expand All @@ -7,6 +8,7 @@ RUN go mod download
COPY . .
RUN go build -o main ./cmd/vugopress

# Run stage
FROM alpine:latest

WORKDIR /app
Expand Down

0 comments on commit 3ce1055

Please sign in to comment.