fix docker
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 22m27s

This commit is contained in:
Nicholas Orlowsky 2025-09-19 23:22:19 -04:00
parent 53f316b59f
commit 52e0a9672f
No known key found for this signature in database
GPG key ID: A9F3BA4C0AA7A70B

View file

@ -1,12 +1,7 @@
FROM rust:alpine as build FROM rust:1.90-bullseye AS build
ENV PKG_CONFIG_ALLOW_CROSS=1 ENV PKG_CONFIG_ALLOW_CROSS=1
ENV SCCACHE_DIR=/build-cache
ENV RUSTC_WRAPPER=sccache
RUN apk add pkgconfig openssl-dev libc-dev openssl-libs-static sccache
WORKDIR . WORKDIR .
COPY ./api ./api COPY ./api ./api
COPY ./libseptastic/ ./libseptastic/ COPY ./libseptastic/ ./libseptastic/
@ -16,10 +11,8 @@ COPY ./api/templates ./templates
RUN cd api && cargo build --release RUN cd api && cargo build --release
FROM alpine:latest FROM debian:bullseye-slim
WORKDIR /app WORKDIR /app
RUN apk update \
&& apk add openssl ca-certificates
EXPOSE 8080 EXPOSE 8080
COPY --from=build /api/target/release/septastic_api /app/septastic_api COPY --from=build /api/target/release/septastic_api /app/septastic_api