blob: 8b3475e46be222554e4d0bd104e80e2035eb4343 (
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
27
28
|
# Stage 1
FROM rust:latest AS builder
WORKDIR /app
COPY . .
RUN cargo build --release
# Stage 2
FROM debian:bookworm-slim
LABEL version="0.8.2"
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"]
|