Actually build properly within docker >_<
This commit is contained in:
parent
b5a1d32898
commit
4f8de277ed
1
.env
1
.env
|
@ -1 +0,0 @@
|
|||
DATABASE_URL=postgres://postgres:supersecretpassword@localhost/dotdotvote
|
|
@ -1 +1,2 @@
|
|||
/target
|
||||
.env
|
||||
|
|
|
@ -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 && \
|
||||
|
|
Loading…
Reference in New Issue