forked from gaylong9/mirai-mcl-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.bak
27 lines (22 loc) · 923 Bytes
/
Dockerfile.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ibm-semeru-runtimes:open-17-jre-focal
ENV TZ Asia/Shanghai
ENV BASE_PATH=/home/mirai
ENV MCL_VERSION=2.1.2
WORKDIR $BASE_PATH
RUN cd $BASE_PATH && \
apt update && \
apt install -y unzip curl primus-libs && \
curl -OL https://github.com/iTXTech/mirai-console-loader/releases/download/v${MCL_VERSION}/mcl-${MCL_VERSION}.zip && \
unzip mcl-${MCL_VERSION}.zip && \
rm mcl-${MCL_VERSION}.zip && \
chmod +x ./mcl && \
# install plugins
./mcl --update-package net.mamoe:chat-command --channel maven-stable --type plugin && \
./mcl --update-package xyz.cssxsh.mirai:mirai-skia-plugin --channel maven-stable --type plugins && \
./mcl --update-package top.colter:bilibili-dynamic-mirai-plugin --channel maven --type plugin && \
# Clean up
apt-get purge -y unzip && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
CMD ["./mcl"]