Skip to content

Commit

Permalink
Add simpe dockerfile for building binary.
Browse files Browse the repository at this point in the history
  • Loading branch information
gerrowadat committed Nov 5, 2023
1 parent ade1f39 commit f396bee
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 @@
FROM golang:1.21

WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY *.go ./

# Build
RUN CGO_ENABLED=0 GOOS=linux go build -o /clouddns-sync

# Run
ENTRYPOINT ["/clouddns-sync"]

0 comments on commit f396bee

Please sign in to comment.