forked from sakarie9/Go-CQHTTP-Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (20 loc) · 724 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (20 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM debian:11
ARG VERSION=v1.2.0
ARG BIN_LINK_AMD64=https://github.com/Mrs4s/go-cqhttp/releases/download/${VERSION}/go-cqhttp_linux_amd64.tar.gz
ARG BIN_LINK_ARM64=https://github.com/Mrs4s/go-cqhttp/releases/download/${VERSION}/go-cqhttp_linux_arm64.tar.gz
ARG TARGETARCH
ENV TZ Asia/Shanghai
ENV DEBIAN_FRONTEND=noninteractive
ARG BIN_LINK
WORKDIR /app
RUN apt-get update && \
apt-get install -y curl tar yasm ffmpeg tzdata && \
case ${TARGETARCH} in \
"amd64") BIN_LINK=${BIN_LINK_AMD64} ;; \
"arm64") BIN_LINK=${BIN_LINK_ARM64} ;; \
esac && \
curl -LJo /app/bin.tar.gz ${BIN_LINK} && \
tar -zxvf bin.tar.gz && \
chmod +x go-cqhttp
WORKDIR /cqdata
CMD /app/go-cqhttp faststart