16 lines
222 B
Docker
16 lines
222 B
Docker
FROM golang:1.26
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt install -y make gcc
|
|
|
|
ENV CGO_ENABLED=1
|
|
|
|
# Copy dependency definitions first (caching optimization)
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
|
|
RUN make build BUILD_DIR=/tmp
|