mirror of
https://codeberg.org/gigirassy/image-proxy/
synced 2026-08-30 15:37:41 +00:00
Update Dockerfile
This commit is contained in:
+4
-2
@@ -2,7 +2,9 @@ FROM 11notes/alpine:stable as builder
|
||||
|
||||
USER root
|
||||
|
||||
RUN apk update && apk add rust ca-certificates musl-dev build-base openssl-dev cargo curl
|
||||
RUN apk update && apk add ca-certificates musl-dev build-base openssl-dev curl
|
||||
|
||||
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||
|
||||
WORKDIR /app
|
||||
COPY Cargo.toml .
|
||||
@@ -10,7 +12,7 @@ COPY src ./src
|
||||
|
||||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||
|
||||
RUN ~/.cargo/bin/rustup target add x86_64-unknown-linux-musl
|
||||
RUN rustup target add x86_64-unknown-linux-musl
|
||||
|
||||
RUN RUSTFLAGS="-Ctarget-feature=+crt-static" cargo build --release --target x86_64-unknown-linux-musl
|
||||
|
||||
|
||||
Reference in New Issue
Block a user