Skip to content

Commit

Permalink
fix docker build (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
envestcc authored Dec 26, 2024
1 parent 25ee113 commit 1178675
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
FROM golang:1.23-alpine AS builder
FROM golang:1.23-bullseye AS builder

WORKDIR /app

# ENV GO111MODULE on
# 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/
Expand Down

0 comments on commit 1178675

Please sign in to comment.