File tree Expand file tree Collapse file tree 1 file changed +5
-19
lines changed Expand file tree Collapse file tree 1 file changed +5
-19
lines changed Original file line number Diff line number Diff line change 1
- FROM rust:1.75 .0 as build
1
+ FROM rust:1.79 .0 as build
2
2
ENV PKG_CONFIG_ALLOW_CROSS=1
3
3
4
4
WORKDIR /usr/src/labrinth
5
- # Download and compile deps
6
- COPY Cargo.toml .
7
- COPY Cargo.lock .
8
- COPY docker_utils/dummy.rs .
9
- # Change temporarely the path of the code
10
- RUN sed -i 's|src/main.rs|dummy.rs|' Cargo.toml
11
- # Build only deps
12
- RUN cargo build --release --features jemalloc
13
- # Now return the file back to normal
14
- RUN sed -i 's|dummy.rs|src/main.rs|' Cargo.toml
15
-
16
- # Copy everything
17
5
COPY . .
18
- # Build our code
19
- ARG SQLX_OFFLINE=true
20
- RUN cargo build --release --features jemalloc
6
+ RUN cargo build --release
7
+
21
8
22
- # Final Stage
23
- FROM ubuntu:latest
9
+ FROM debian:bookworm-slim
24
10
25
11
RUN apt-get update \
26
- && apt-get install -y --no-install-recommends ca-certificates \
12
+ && apt-get install -y --no-install-recommends ca-certificates openssl \
27
13
&& apt-get clean \
28
14
&& rm -rf /var/lib/apt/lists/*
29
15
You can’t perform that action at this time.
0 commit comments