septastic/Dockerfile
Nicholas Orlowsky 52e0a9672f
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 22m27s
fix docker
2025-09-19 23:22:19 -04:00

28 lines
505 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
ENV RUST_LOG=info
ENV EXPOSE_PORT=8080
RUN ls -lah
RUN pwd
ENTRYPOINT ["./septastic_api"]