blob: 1db6021fa9535e29dd32c26f8bd1c1289e91aa15 (
plain)
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
|
# Stage 1
FROM rust:latest AS builder
WORKDIR /app
COPY . .
RUN cargo build --release
# Stage 2
FROM debian:bookworm-slim
RUN mkdir -p /app
RUN apt-get update && apt-get install -y libssl-dev
RUN groupadd -g 999 appuser && \
useradd -r -u 999 -g appuser appuser
USER appuser
COPY --from=builder /app/target/release/cas /app
WORKDIR /app
EXPOSE 8000
ENTRYPOINT ["./cas"]
|