forked from edgeandnode/gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (22 loc) · 636 Bytes
/
Dockerfile
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
FROM rust:1-bookworm AS build
RUN apt-get update && apt-get install -y \
build-essential \
clang \
cmake \
git \
librdkafka-dev \
libsasl2-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt/gateway
COPY ./ ./
ENV CC=clang CXX=clang++
RUN cargo build --release --bin graph-gateway --color=always
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y \
ca-certificates \
libsasl2-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /opt/gateway/target/release/graph-gateway /opt/gateway/target/release/graph-gateway
WORKDIR /opt/gateway
ENTRYPOINT [ "target/release/graph-gateway" ]