clean up + update dfile
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 6m0s

This commit is contained in:
Nicholas Orlowsky 2025-09-21 19:53:11 -04:00
parent 7904c80642
commit 8fd41b1090
No known key found for this signature in database
GPG key ID: A9F3BA4C0AA7A70B
8 changed files with 314 additions and 335 deletions

View file

@ -1,6 +1,8 @@
FROM rust:1.90-bullseye AS build
FROM rust:1.90-slim-trixie AS build
ENV PKG_CONFIG_ALLOW_CROSS=1
ENV SCCACHE_DIR=/build-cache
ENV RUSTC_WRAPPER=sccache
WORKDIR .
COPY ./api ./api
@ -9,9 +11,10 @@ COPY ./api/assets ./assets
COPY ./api/templates ./templates
RUN apt -y update && apt install -y libssl-dev libc-dev sccache build-essential pkg-config
RUN cd api && cargo build --release
FROM debian:bullseye-slim
FROM debian:trixie-slim
WORKDIR /app
EXPOSE 8080
@ -19,7 +22,7 @@ COPY --from=build /api/target/release/septastic_api /app/septastic_api
COPY api/assets /app/assets
COPY api/templates /app/templates
RUN apt update && apt install curl
RUN apt -y update && apt install -y curl
ENV RUST_LOG=info
ENV EXPOSE_PORT=8080