Fix Dockerfile

This commit is contained in:
dobiadi
2025-12-04 21:45:59 +01:00
parent 34317fec84
commit b29594176b

View File

@@ -8,7 +8,7 @@ COPY Cargo.toml /usr/src/
WORKDIR /usr/src WORKDIR /usr/src
RUN apk add --no-cache rustup build-base && \ RUN apk add --no-cache rustup build-base openssl-dev openssl-libs-static && \
rustup-init -qy --profile=minimal --default-toolchain=$RUST_VERSION && \ rustup-init -qy --profile=minimal --default-toolchain=$RUST_VERSION && \
source "$HOME/.cargo/env" && \ source "$HOME/.cargo/env" && \
mkdir src && echo "fn main() {}" > src/main.rs && \ mkdir src && echo "fn main() {}" > src/main.rs && \
@@ -17,6 +17,7 @@ RUN apk add --no-cache rustup build-base && \
rm src/main.rs rm src/main.rs
COPY src/ /usr/src/src/ COPY src/ /usr/src/src/
COPY target/ /usr/src/target/
RUN source "$HOME/.cargo/env" && \ RUN source "$HOME/.cargo/env" && \
touch src/main.rs && \ touch src/main.rs && \