-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make main docker image as minimal as possible to prevent big size image
- Loading branch information
Showing
4 changed files
with
79 additions
and
19 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM python:3.11 | ||
|
||
COPY . /app | ||
WORKDIR /app | ||
|
||
# Setup rust | ||
RUN apt update && apt install wget | ||
ENV RUSTUP_HOME=/usr/local/rustup \ | ||
CARGO_HOME=/usr/local/cargo \ | ||
PATH=/usr/local/cargo/bin:$PATH \ | ||
RUST_VERSION=1.78.0 | ||
RUN wget https://sh.rustup.rs -O rustup.sh | ||
RUN chmod +x ./rustup.sh | ||
RUN ./rustup.sh -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION | ||
RUN chmod -R a+w $RUSTUP_HOME $CARGO_HOME; | ||
RUN rustup --version; | ||
RUN cargo --version; | ||
RUN rustc --version; | ||
|
||
# Install mangadex-downloader | ||
RUN pip install --upgrade pip | ||
RUN pip install .[optional] | ||
|
||
WORKDIR /downloads | ||
|
||
ENTRYPOINT [ "mangadex-downloader" ] | ||
|
||
CMD [ "--help" ] |