forked from h4ckf0r0day/obscura
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 728 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 728 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
FROM rust:1.88-bookworm AS builder
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
clang \
libclang-dev \
pkg-config \
python3 \
&& rm -rf /var/lib/apt/lists/*
COPY . .
RUN cargo build --release -p obscura-cli
FROM debian:bookworm-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/obscura /usr/local/bin/obscura
COPY --from=builder /app/target/release/obscura-worker /usr/local/bin/obscura-worker
EXPOSE 9222
ENTRYPOINT ["/usr/local/bin/obscura"]
CMD ["serve", "--host", "0.0.0.0", "--port", "9222"]