Skip to content

Commit

Permalink
Here we go guys, Dockerfile problem (part 7)
Browse files Browse the repository at this point in the history
Copy paste stuff from docker official image rust
  • Loading branch information
mansuf committed Jun 5, 2024
1 parent ba78c56 commit df24f61
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,23 @@ FROM python:3.11

COPY . /app
WORKDIR /app
RUN pip install --upgrade pip

# 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 -q -y
RUN . "$HOME/.cargo/env"
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
Expand Down

0 comments on commit df24f61

Please sign in to comment.