Docker
Some checks failed
CI / Typos (push) Successful in 17s
CI / Build and test (push) Failing after 2m45s
CI / Clippy (push) Successful in 3m37s
Docker / build-and-push (push) Failing after 5m27s
CI / Build and test (all features) (push) Failing after 9m50s

This commit is contained in:
2026-03-24 09:56:42 -07:00
parent f9a39d5ff9
commit 67b210a7bf
2 changed files with 67 additions and 0 deletions

37
Dockerfile Normal file
View File

@@ -0,0 +1,37 @@
FROM rust:1.94-bookworm AS base
#
# MARK: Build
#
FROM base AS build
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates wget unzip \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app/rust
COPY . .
RUN cargo build --release --workspace
RUN cargo test --release --workspace
#
# MARK: Release
#
FROM debian:bookworm AS deploy
WORKDIR /app
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build \
/app/rust/target/release/pile \
/app/bin/
ENV PATH="/app/bin:$PATH"
ENV RUST_BACKTRACE=full
ENTRYPOINT [""]