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