septastic/Dockerfile
Nicholas Orlowsky 3d1e213798
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 32m36s
add sccache
2025-09-14 12:13:44 -04:00

23 lines
417 B
Docker

FROM rust:1.86.0 as build
ENV PKG_CONFIG_ALLOW_CROSS=1
ENV SCCACHE_DIR=/build-cache
ENV RUSTC_WRAPPER=sccache
RUN apt update && apt install sccache
WORKDIR .
COPY ./api ./api
COPY ./libseptastic/ ./libseptastic/
COPY ./api/assets ./assets
COPY ./api/templates ./templates
RUN cd api && cargo build --release
ENV RUST_LOG=info
ENV EXPOSE_PORT=8080
EXPOSE 8080
ENTRYPOINT ["/api/target/release/septastic_api"]