-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 754 Bytes
/
Dockerfile
File metadata and controls
33 lines (24 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM rust:1.89.0-slim-bookworm AS builder
WORKDIR /app
RUN apt-get update && apt-get -y install --no-install-recommends \
pkg-config \
libssl-dev \
build-essential \
ca-certificates \
&& apt-get autoclean && rm -rf /var/lib/apt/lists/*
COPY Cargo.toml Cargo.lock ./
COPY src ./src
RUN cargo build --release --locked --features bundled
FROM debian:bookworm-slim
WORKDIR /app
RUN apt-get update && apt-get -y install --no-install-recommends \
libssl3 \
ca-certificates \
libcurl4-openssl-dev \
procps \
&& apt-get autoclean && rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/altertable-mock /usr/local/bin/altertable-mock
EXPOSE 15000
EXPOSE 15002
ENV RUST_LOG=info
ENTRYPOINT ["altertable-mock"]