mirror of
https://github.com/mbround18/valheim-docker.git
synced 2021-10-22 21:53:54 +03:00
Avoid compiling odin twice in dockerfile (#78)
Co-authored-by: Michael <12646562+mbround18@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
01a044e19a
commit
7260f7df2b
@@ -6,8 +6,7 @@ FROM rust:latest as RustBuilder
|
||||
WORKDIR /data/odin
|
||||
COPY . .
|
||||
|
||||
RUN cargo install --path . \
|
||||
&& cargo build --release
|
||||
RUN cargo build --release
|
||||
|
||||
ENTRYPOINT ["/data/odin/target/release/odin"]
|
||||
CMD ["--version"]
|
||||
|
||||
Reference in New Issue
Block a user