fix(docker): Start with lib project for caching
This commit is contained in:
parent
1fae322993
commit
1fe39fbd3c
@ -2,6 +2,7 @@ FROM ekidd/rust-musl-builder:stable as builder
|
||||
|
||||
# create new cargo project
|
||||
RUN USER=rust cargo init --lib
|
||||
RUN echo 'fn main() { println!("Hello, world!"); }' >> src/main.rs
|
||||
# copy build config
|
||||
COPY --chown=rust ./Cargo.lock ./Cargo.lock
|
||||
COPY ./Cargo.toml ./Cargo.toml
|
||||
|
Loading…
Reference in New Issue
Block a user