Fix Dockerfile
This commit is contained in:
@@ -8,7 +8,7 @@ COPY Cargo.toml /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 && \
|
||||
source "$HOME/.cargo/env" && \
|
||||
mkdir src && echo "fn main() {}" > src/main.rs && \
|
||||
@@ -17,6 +17,7 @@ RUN apk add --no-cache rustup build-base && \
|
||||
rm src/main.rs
|
||||
|
||||
COPY src/ /usr/src/src/
|
||||
COPY target/ /usr/src/target/
|
||||
|
||||
RUN source "$HOME/.cargo/env" && \
|
||||
touch src/main.rs && \
|
||||
|
||||
Reference in New Issue
Block a user