fix(docker): Start with lib project for caching
Some checks failed
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is failing

This commit is contained in:
Valentin Brandl 2021-06-29 19:23:34 +02:00
parent 1fae322993
commit 1fe39fbd3c

View File

@ -2,6 +2,7 @@ FROM ekidd/rust-musl-builder:stable as builder
# create new cargo project # create new cargo project
RUN USER=rust cargo init --lib RUN USER=rust cargo init --lib
RUN echo 'fn main() { println!("Hello, world!"); }' >> src/main.rs
# copy build config # copy build config
COPY --chown=rust ./Cargo.lock ./Cargo.lock COPY --chown=rust ./Cargo.lock ./Cargo.lock
COPY ./Cargo.toml ./Cargo.toml COPY ./Cargo.toml ./Cargo.toml