From 4a921df55d59534ca5f92b87f74b548d521518c0 Mon Sep 17 00:00:00 2001 From: "aditya.siregar" Date: Fri, 18 Jul 2025 20:15:12 +0700 Subject: [PATCH] init docker --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ec0495c..76240b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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