m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-08 05:03:49 -05:00

Update Dockerfile

Experimental dependency caching
This commit is contained in:
Sergio
2024-07-10 14:41:21 +03:00
committed by GitHub
parent 54eed353aa
commit 9a75f5101f

View File

@@ -3,8 +3,13 @@ WORKDIR /
RUN apk add musl-dev
RUN USER=root cargo new --bin cup
WORKDIR /cup
COPY Cargo.toml Cargo.lock ./
RUN cargo build --release
RUN rm src/*.rs
COPY src ./src
RUN cargo build --release