mirror of
https://github.com/black-ant/Ant-Browser.git
synced 2026-07-14 18:48:55 +08:00
channel: master version: 1.1.0 source-ref: master published-at-utc: 2026-03-20T14:14:07Z
40 lines
1.5 KiB
Docker
40 lines
1.5 KiB
Docker
ARG BUILDER_BASE_IMAGE=swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/golang:1.25-bookworm
|
|
FROM ${BUILDER_BASE_IMAGE}
|
|
|
|
RUN sed -i 's|http://deb.debian.org|https://deb.debian.org|g' /etc/apt/sources.list.d/debian.sources \
|
|
&& apt-get update -o Acquire::Retries=8 -o Acquire::https::Timeout=60 \
|
|
&& apt-get install -y --fix-missing --no-install-recommends \
|
|
-o Acquire::Retries=8 -o Acquire::https::Timeout=60 \
|
|
build-essential \
|
|
ca-certificates \
|
|
curl \
|
|
dpkg-dev \
|
|
git \
|
|
gnupg \
|
|
libayatana-appindicator3-dev \
|
|
libgtk-3-dev \
|
|
libwebkit2gtk-4.0-dev \
|
|
patchelf \
|
|
pkg-config \
|
|
python3 \
|
|
tar \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN mkdir -p /etc/apt/keyrings \
|
|
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \
|
|
| gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
|
|
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" \
|
|
> /etc/apt/sources.list.d/nodesource.list \
|
|
&& apt-get update -o Acquire::Retries=8 -o Acquire::https::Timeout=60 \
|
|
&& apt-get install -y --fix-missing --no-install-recommends \
|
|
-o Acquire::Retries=8 -o Acquire::https::Timeout=60 nodejs \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV GOPROXY="https://goproxy.cn,direct" \
|
|
GOSUMDB="sum.golang.google.cn" \
|
|
PATH="/root/go/bin:${PATH}"
|
|
|
|
RUN go install github.com/wailsapp/wails/v2/cmd/wails@v2.11.0 \
|
|
&& ln -sf /root/go/bin/wails /usr/local/bin/wails
|
|
WORKDIR /workspace
|