Init commit, base struct and redis connection
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM golang:1.23.4-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod ./
|
||||
|
||||
RUN go mod download && go mod verify
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN go build -o main cmd/main.go
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=builder /app/main /main
|
||||
|
||||
CMD ["./main"]
|
||||
Reference in New Issue
Block a user