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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user