chore: add .dockerignore and update Dockerfile to use debian:trixie-slim
This commit is contained in:
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
/target
|
||||||
|
/app
|
||||||
|
.superpowers/
|
||||||
|
.git/
|
||||||
|
.claude/
|
||||||
@@ -6,14 +6,15 @@ COPY . .
|
|||||||
# Build the release binary
|
# Build the release binary
|
||||||
RUN cargo build --release -p api
|
RUN cargo build --release -p api
|
||||||
|
|
||||||
FROM debian:bookworm-slim
|
FROM debian:trixie-slim
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install OpenSSL, CA certs, and ffmpeg (provides ffprobe for local-files duration scanning)
|
# Install OpenSSL, CA certs
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
libssl3 \
|
libssl3 \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
libsqlite3-0 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY --from=builder /app/target/release/api .
|
COPY --from=builder /app/target/release/api .
|
||||||
|
|||||||
Reference in New Issue
Block a user