Skip to content

Commit 3a60f41

Browse files
authored
Merge pull request #3 from SharanRP/actions
refactor: update Go base image to 1.22 and streamline Dockerfile inst…
2 parents 6334c06 + ff33212 commit 3a60f41

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
# Build stage
2-
FROM golang:1.21-alpine AS builder
2+
FROM golang:1.22-alpine AS builder
33

44
# Install build dependencies
55
RUN apk add --no-cache git ca-certificates tzdata
66

77
# Set working directory
88
WORKDIR /app
99

10-
# Copy go mod files
11-
COPY go.mod go.sum ./
10+
# Copy source code (includes go.mod and go.sum)
11+
COPY . .
1212

1313
# Download dependencies
1414
RUN go mod download
1515

16-
# Copy source code
17-
COPY . .
18-
1916
# Build the application
2017
RUN CGO_ENABLED=0 GOOS=linux go build \
2118
-ldflags='-w -s -extldflags "-static"' \

0 commit comments

Comments
 (0)