ci: align docker packaging path

This commit is contained in:
Kevin Yue committed 2026-05-09 20:10:24 +08:00
1 parent ebadab8f06
commit 18b788e664
4 files changed
+43 -54

No files matched your search

+61
View File
@@ -0,0 +1,61 @@
# syntax=docker/dockerfile:1
ARG ALPINE_VERSION=3.23
ARG RUST_VERSION=1.89
FROM rust:${RUST_VERSION}-alpine AS builder
WORKDIR /src
RUN apk add --no-cache \
autoconf \
automake \
build-base \
file \
gettext-dev \
gmp-dev \
gnutls-dev \
libtool \
libxml2-dev \
linux-headers \
lz4-dev \
make \
nettle-dev \
openssl-dev \
p11-kit-dev \
patch \
pkgconf \
zlib-dev
COPY . .
RUN make build \
BUILD_GUI_HELPER=0 \
INCLUDE_GUI=0 \
LIBXML2_STATIC=1
RUN install -Dm755 target/release/gpclient /out/usr/bin/gpclient \
&& install -Dm755 target/release/gpauth /out/usr/bin/gpauth \
&& install -Dm755 packaging/files/usr/libexec/gpclient/vpnc-script /out/usr/libexec/gpclient/vpnc-script \
&& install -Dm755 packaging/files/usr/libexec/gpclient/hipreport.sh /out/usr/libexec/gpclient/hipreport.sh
FROM alpine:${ALPINE_VERSION}
RUN apk add --no-cache \
ca-certificates \
gmp \
gnutls \
iproute2 \
iputils \
libxml2 \
lz4 \
nettle \
openssl \
p11-kit \
zlib \
&& update-ca-certificates
COPY --from=builder /out/ /
ENTRYPOINT ["gpclient"]
CMD ["--help"]