Skip to content

Commit beaa35f

Browse files
author
farhoud.m7
committed
Install build dependencies in Dockerfile to enable CGO for application compilation
1 parent cfd08a9 commit beaa35f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ FROM golang:1.21-alpine AS builder
33

44
WORKDIR /app
55

6+
# Install build dependencies
7+
RUN apk add --no-cache gcc musl-dev
8+
69
# Copy go mod and sum files
710
COPY go.mod go.sum ./
811

0 commit comments

Comments
 (0)