-
-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathDockerfile.optional
More file actions
28 lines (22 loc) · 652 Bytes
/
Copy pathDockerfile.optional
File metadata and controls
28 lines (22 loc) · 652 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
25
26
27
28
FROM python:3.13
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.84.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" ]