septastic/Dockerfile
Nicholas Orlowsky 7904c80642
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Failing after 5m45s
fix docker
2025-09-20 20:50:44 -04:00

27 lines
520 B
Docker

FROM rust:1.90-bullseye AS build
ENV PKG_CONFIG_ALLOW_CROSS=1
WORKDIR .
COPY ./api ./api
COPY ./libseptastic/ ./libseptastic/
COPY ./api/assets ./assets
COPY ./api/templates ./templates
RUN cd api && cargo build --release
FROM debian:bullseye-slim
WORKDIR /app
EXPOSE 8080
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
ENV RUST_LOG=info
ENV EXPOSE_PORT=8080
ENTRYPOINT ["./septastic_api"]