This commit is contained in:
Nicholas Orlowsky 2026-02-16 21:36:36 -05:00
parent b7ec6a292f
commit 9297006ab3
No known key found for this signature in database
GPG key ID: A9F3BA4C0AA7A70B
58 changed files with 2032 additions and 2074 deletions

View file

@ -5,27 +5,27 @@ ENV SCCACHE_DIR=/build-cache
ENV RUSTC_WRAPPER=sccache
WORKDIR .
COPY ./api ./api
COPY ./web ./web
COPY ./libseptastic/ ./libseptastic/
COPY ./api/assets ./assets
COPY ./api/templates ./templates
COPY ./web/assets ./assets
COPY ./web/templates ./templates
RUN apt -y update && apt install -y libssl-dev protobuf-compiler libc-dev sccache build-essential pkg-config
RUN cd api && cargo build --release
RUN cd web && cargo build --release
FROM debian:trixie-slim
WORKDIR /app
EXPOSE 8080
COPY --from=build /api/target/release/septastic_api /app/septastic_api
COPY --from=build /api/config.yaml /app/config.yaml
COPY api/assets /app/assets
COPY api/templates /app/templates
COPY --from=build /web/target/release/septastic_web /app/septastic_web
COPY --from=build /web/config.yaml /app/config.yaml
COPY web/assets /app/assets
COPY web/templates /app/templates
RUN apt -y update && apt install -y curl
ENV RUST_LOG=info
ENV EXPOSE_PORT=8080
ENTRYPOINT ["./septastic_api"]
ENTRYPOINT ["./septastic_web"]