Skip to content

Commit 2f4d642

Browse files
author
Chris Vermeulen
authored
Migrate away from different base images to enabled CGO (#195)
1 parent 5bb3bc4 commit 2f4d642

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.vscode
22
.github
33
.env*
4+
local.go
5+
test.db

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ COPY . ./
3232
RUN make swag
3333

3434
# Build it
35-
RUN CGO_ENABLED=0 GOOS=linux go build -o /configuration-service
35+
RUN GOOS=linux go build -o /configuration-service
3636

37-
FROM alpine AS production
37+
FROM golang:1.23 AS production
3838
WORKDIR /
3939

4040
COPY --from=builder /configuration-service /configuration-service

0 commit comments

Comments
 (0)