Ensure that the Cargo.lock is used when compiling releases
Was seeing failures on deployment because there are newer crates which don't compile out of the box
This commit is contained in:
parent
9094762675
commit
f6c12316f1
|
@ -10,6 +10,7 @@ RUN apt-get update && \
|
|||
|
||||
# 1c: Build the exe using the actual source code
|
||||
COPY Cargo.toml .
|
||||
COPY Cargo.lock .
|
||||
COPY sqlx-data.json .
|
||||
COPY src ./src
|
||||
RUN cargo build --release
|
||||
|
|
Loading…
Reference in New Issue