fix dockerfile

This commit is contained in:
Robin Appelman 2021-03-24 15:52:45 +01:00
commit 29ea9f2721

View file

@ -10,7 +10,8 @@ RUN mkdir src && \
COPY src/ ./src/
COPY sqlx-data.json ./
RUN sudo chown -R rust:rust .
RUN sudo chown -R rust:rust . && \
touch src/main.rs
RUN cargo build --release
@ -18,4 +19,4 @@ FROM scratch
COPY --from=build /home/rust/src/target/x86_64-unknown-linux-musl/release/log-archiver /
CMD ["/log-archiver"]
CMD ["/log-archiver"]