diff --git a/Dockerfile b/Dockerfile index 3d5358f0..db12fd62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -72,6 +72,7 @@ FROM python:3.12-slim-bookworm # Install system dependencies, including libexpat1 and clean up the cache RUN apt-get update && apt-get install -y --no-install-recommends \ libexpat1 \ + libsndfile1 \ && rm -rf /var/lib/apt/lists/* # Copy the application from the builder diff --git a/back/Dockerfile b/back/Dockerfile index 95f890bd..2034bf9c 100644 --- a/back/Dockerfile +++ b/back/Dockerfile @@ -2,6 +2,12 @@ FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim WORKDIR /code +# Install system dependencies, including libexpat1 and clean up the cache +RUN apt-get update && apt-get install -y --no-install-recommends \ + libexpat1 \ + libsndfile1 \ + && rm -rf /var/lib/apt/lists/* + RUN --mount=type=cache,target=/root/.cache/uv \ --mount=type=bind,source=uv.lock,target=uv.lock \ --mount=type=bind,source=pyproject.toml,target=pyproject.toml \ diff --git a/front/src/app/api.ts b/front/src/app/api.ts index c4d680bf..a74504bf 100644 --- a/front/src/app/api.ts +++ b/front/src/app/api.ts @@ -1,7 +1,12 @@ import createAPI from "@/lib/api"; +const baseURL = + process.env.NODE_ENV === "development" + ? process.env.NEXT_PUBLIC_BACKEND_HOST || "" + : ""; + const api = createAPI({ - baseURL: `${process.env.NEXT_PUBLIC_BACKEND_HOST}`, + baseURL, withCredentials: true, });