Last active
November 4, 2022 03:17
-
-
Save MrHuxu/baa0b11eedd179a6776e4e26b4a99d59 to your computer and use it in GitHub Desktop.
gfriends
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:stable-slim | |
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list | |
RUN apt-get update && apt-get install -y unzip expect | |
WORKDIR /gfriends | |
COPY ./Gfriends-Inputer-ubuntu-latest.zip /gfriends/ | |
RUN unzip Gfriends-Inputer-ubuntu-latest.zip \ | |
&& mv Gfriends\ Inputer gfriends-inputer \ | |
&& chmod +x gfriends-inputer \ | |
&& apt-get --purge -y remove unzip | |
ENTRYPOINT [ \ | |
"expect", \ | |
"-c", \ | |
"spawn /gfriends/gfriends-inputer; expect \"按任意键跳过更新...\"; send \"\r\"; expect \"按任意键开始...\"; send \"\r\"; interact;" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build: | |
docker build --platform=linux/amd64 -t 192.168.0.101:5555/gfriends . | |
test: | |
docker run -it -v /Users/xu.hu/Workspace/gfriends/config.ini:/gfriends/config.ini --platform linux/amd64 192.168.0.101:5555/gfriends /bin/bash | |
push: | |
docker push 192.168.0.101:5555/gfriends |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment