Some checks failed
Create and publish a Docker image / build-and-push-image (push) Failing after 5m45s
27 lines
520 B
Docker
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"]
|