Skip to content

Commit 1178675

Browse files
authored
fix docker build (#23)
1 parent 25ee113 commit 1178675

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
FROM golang:1.23-alpine AS builder
1+
FROM golang:1.23-bullseye AS builder
22

33
WORKDIR /app
44

55
# ENV GO111MODULE on
66
# ENV GOPROXY https://goproxy.cn
77

88
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
9-
RUN apk add --no-cache make gcc musl-dev linux-headers git
9+
RUN apt-get update && apt-get install -y make gcc musl-dev git libc-dev build-essential
1010

1111
COPY . .
1212
RUN go mod download
1313
RUN make
1414

15-
FROM alpine:latest
15+
FROM golang:1.23-bullseye
1616

1717
WORKDIR /app
1818
COPY --from=builder /app/config.yml /app/

0 commit comments

Comments
 (0)