* Update async-compression 0.4.24 -> 0.4.25 * Update reqwest 0.12.19 -> 0.12.20 * Update rust_decimal 1.37.1 -> 1.37.2 * Update sentry 0.38.1 -> 0.41.0 * Update sentry-actix 0.38.1 -> 0.41.0 * Update serde_with 3.12.0 -> 3.13.0 * Update tauri 2.5.1 -> 2.6.1 and all Tauri dependencies * Update zip 4.0.0 -> 4.2.0 * Update Rust 1.87.0 -> 1.88.0
30 lines
880 B
Docker
30 lines
880 B
Docker
FROM rust:1.88.0 AS build
|
|
ENV PKG_CONFIG_ALLOW_CROSS=1
|
|
|
|
WORKDIR /usr/src/labrinth
|
|
COPY . .
|
|
COPY apps/labrinth/.sqlx/ .sqlx/
|
|
RUN cargo build --release --package labrinth
|
|
|
|
|
|
FROM debian:bookworm-slim
|
|
|
|
LABEL org.opencontainers.image.source=https://github.com/modrinth/code
|
|
LABEL org.opencontainers.image.description="Modrinth API"
|
|
LABEL org.opencontainers.image.licenses=AGPL-3.0
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ca-certificates openssl dumb-init \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN update-ca-certificates
|
|
|
|
COPY --from=build /usr/src/labrinth/target/release/labrinth /labrinth/labrinth
|
|
COPY --from=build /usr/src/labrinth/apps/labrinth/migrations/* /labrinth/migrations/
|
|
COPY --from=build /usr/src/labrinth/apps/labrinth/assets /labrinth/assets
|
|
WORKDIR /labrinth
|
|
|
|
ENTRYPOINT ["dumb-init", "--"]
|
|
CMD ["/labrinth/labrinth"]
|