Actually build properly within docker >_<

This commit is contained in:
R Tyler Croy 2020-10-11 12:14:20 -07:00
parent b5a1d32898
commit 4f8de277ed
3 changed files with 3 additions and 2 deletions

1
.env
View File

@ -1 +0,0 @@
DATABASE_URL=postgres://postgres:supersecretpassword@localhost/dotdotvote

1
.gitignore vendored
View File

@ -1 +1,2 @@
/target
.env

View File

@ -10,6 +10,7 @@ RUN apt-get update && \
# 1c: Build the exe using the actual source code
COPY Cargo.toml .
COPY sqlx-data.json .
COPY src ./src
RUN cargo build --release
@ -19,7 +20,7 @@ COPY --from=builder /usr/ddv/target/release/dotdotvote .
COPY apidocs ./apidocs
COPY views ./views
COPY assets ./static
COPY static ./static
RUN apt-get update && \
apt-get dist-upgrade -y && \