Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
caoyingjunz committed Dec 14, 2024
1 parent 22ac0ac commit 882cc15
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ COPY ./go.mod ./
COPY ./go.sum ./
#RUN go mod download
COPY . .
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
g++ \
gcc \
libc6-dev \
make \
pkg-config \
; \
rm -rf /var/lib/apt/lists/*
RUN CGO_ENABLED=1 go build -ldflags "-s -w -X 'main.version=${VERSION}'" -o pixiu ./cmd

FROM busybox as runner
Expand Down

0 comments on commit 882cc15

Please sign in to comment.