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:
R Tyler Croy 2020-10-20 10:49:16 -07:00
parent 9094762675
commit f6c12316f1
1 changed files with 1 additions and 0 deletions

View File

@ -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