Skip to content

Commit

Permalink
Update rust docker image and add .sqlx/ dir for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarflakstad committed Apr 8, 2024
1 parent 6dd32c8 commit 1c1276b
Show file tree
Hide file tree
Showing 5 changed files with 238 additions and 2 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ COPY . .
RUN cargo chef prepare --recipe-path recipe.json

FROM chef AS builder
RUN apt-get update -y && \
apt-get install -y pkg-config make g++ libssl-dev perl
RUN apt-get update -y && apt-get install -y make perl
COPY --from=planner /app/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json
COPY . .
ENV SQLX_OFFLINE true
RUN cargo build --release --bin server

FROM debian:bookworm-slim AS runtime
Expand Down

0 comments on commit 1c1276b

Please sign in to comment.