-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile.lit-actions
More file actions
33 lines (23 loc) · 921 Bytes
/
Dockerfile.lit-actions
File metadata and controls
33 lines (23 loc) · 921 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-bookworm AS builder
WORKDIR /build
RUN apt-get update && apt-get install -y \
pkg-config \
libssl-dev \
clang \
libsqlite3-dev \
protobuf-compiler \
&& rm -rf /var/lib/apt/lists/*
COPY lit-core ./lit-core/
COPY lit-actions ./lit-actions/
# Remove tests workspace member (excluded by .dockerignore; not needed for release build)
RUN sed -i 's/, "tests"//; s/"tests", //' lit-actions/Cargo.toml
RUN cd lit-actions && cargo build --release --features production --bin lit_actions
FROM debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \
ca-certificates \
libssl3 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=builder /build/lit-actions/target/release/lit_actions /usr/local/bin/
COPY lit-actions/integrity.lock /app/integrity.lock
CMD ["lit_actions", "--socket", "/tmp/lit_actions.sock", "--integrity-lock", "/app/integrity.lock"]