Skip to content

Commit

Permalink
Merge pull request #6 from BreathXV:go
Browse files Browse the repository at this point in the history
Added dockerfile
  • Loading branch information
BreathXV authored Jun 5, 2024
2 parents c5ba907 + e8f9229 commit a8bee03
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM golang:1.22.3 AS builder

WORKDIR /go/src/github.com/BreathXV/ReforgerWhitelistAPI

COPY . .

RUN go install github.com/gorm.io/gorm/...

RUN go build -o main .

FROM alpine:3.12 AS runner

WORKDIR /app

COPY --from=builder /go/src/github.com/BreathXV/ReforgerWhitelistAPI/main .

ENTRYPOINT ["/app/main"]

0 comments on commit a8bee03

Please sign in to comment.