Update workflows/publish_pypi.yml
[manga-dl.git] / Dockerfile
blobfaf9ae491a5c9a7570ffddac1c3f513cb1a86726
1 FROM mangadl/manga-py_base:1.0.2
3 ARG HOST_UID=1000
4 ARG HOST_GID=1000
5 ARG HOST_USER=manga
6 ARG HOST_GROUP=manga
7 ARG HOME='/home/manga'
9 RUN groupadd -g $HOST_GID $HOST_GROUP \
10     && groupadd sudonopswd \
11     && useradd -m -l -g $HOST_GROUP -u $HOST_UID $HOST_USER
13 RUN mkdir $HOME -p; \
14     chown $HOST_USER:$HOST_GROUP $HOME
16 RUN touch $HOME/.bashrc; \
17     mkdir $HOME/Manga; \
18     chown $HOST_USER:$HOST_GROUP $HOME/.bashrc; \
19     chown $HOST_USER:$HOST_GROUP $HOME/Manga
21 RUN python3 -m pip install manga-py==1.25.0
23 RUN rm -rf /tmp/.P* /var/lib/apt/lists/*
25 USER $HOST_USER
26 WORKDIR $HOME
28 # docker run -it -v /tmp/destination:/home/manga mangadl/manga-py
30 ENTRYPOINT  ["manga-py"]
31 CMD ["manga-py", "--version"]