From 117867587980e26b9f84ce0c63a90df52084ce2f Mon Sep 17 00:00:00 2001 From: Chen Chen Date: Thu, 26 Dec 2024 19:43:22 +0800 Subject: [PATCH] fix docker build (#23) --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7abe653..cb8e07e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.23-alpine AS builder +FROM golang:1.23-bullseye AS builder WORKDIR /app @@ -6,13 +6,13 @@ WORKDIR /app # ENV GOPROXY https://goproxy.cn # RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories -RUN apk add --no-cache make gcc musl-dev linux-headers git +RUN apt-get update && apt-get install -y make gcc musl-dev git libc-dev build-essential COPY . . RUN go mod download RUN make -FROM alpine:latest +FROM golang:1.23-bullseye WORKDIR /app COPY --from=builder /app/config.yml /app/