New Rust
Some checks failed
release-tag / release-image (push) Failing after 3m56s

This commit is contained in:
2024-07-01 21:56:06 +02:00
parent 709fc3b1a4
commit 1c7b246252
2 changed files with 11 additions and 9 deletions

View File

@@ -12,14 +12,16 @@ CMD [ "poetry", "run", "uvicorn", "--app-dir", "projectorpi_web", "app:app", "--
FROM base AS prod
COPY --from=docker.io/rust:slim /usr/local/cargo/bin/cargo /usr/local/bin/cargo
ADD requirements.txt ./
RUN apt-get update && apt-get install -y build-essential curl \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
RUN apt-get update && apt-get install -y build-essential \
&& pip3 install --no-cache --upgrade pip \
&& pip3 install --no-cache -r requirements.txt \
&& /root/.cargo/bin/rustup self uninstall -y \
&& apt-get remove -y build-essential curl
&& rm /usr/local/bin/cargo \
&& apt-get remove -y build-essential
ADD projectorpi_web ./projectorpi_web