From 52e0a9672f1952b1ca0b6950fbeeea074be32890 Mon Sep 17 00:00:00 2001 From: Nicholas Orlowsky Date: Fri, 19 Sep 2025 23:22:19 -0400 Subject: [PATCH] fix docker --- Dockerfile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index e258be1..a5a1873 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,7 @@ -FROM rust:alpine as build +FROM rust:1.90-bullseye AS build 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 . COPY ./api ./api COPY ./libseptastic/ ./libseptastic/ @@ -16,10 +11,8 @@ COPY ./api/templates ./templates RUN cd api && cargo build --release -FROM alpine:latest +FROM debian:bullseye-slim WORKDIR /app -RUN apk update \ - && apk add openssl ca-certificates EXPOSE 8080 COPY --from=build /api/target/release/septastic_api /app/septastic_api