init docker
This commit is contained in:
parent
4f5950543e
commit
4a921df55d
@ -1,5 +1,5 @@
|
||||
# Build Stage
|
||||
FROM golang:1.20-alpine AS build
|
||||
FROM golang:1.21-alpine AS build
|
||||
|
||||
# Install necessary packages including CA certificates
|
||||
RUN apk --no-cache add ca-certificates tzdata git curl
|
||||
@ -19,7 +19,7 @@ COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /app cmd/server/main.go
|
||||
|
||||
# Development Stage
|
||||
FROM golang:1.20-alpine AS development
|
||||
FROM golang:1.21-alpine AS development
|
||||
|
||||
# Install air for live reload and other dev tools
|
||||
RUN go install github.com/cosmtrek/air@latest
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user