File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -2,5 +2,8 @@ FROM ghcr.io/astral-sh/uv:python3.13-bookworm
22
33RUN apt update && apt install --no-install-recommends -y curl
44WORKDIR /app
5- COPY ./uv.lock ./pyproject.toml .
5+ COPY ./backend/ uv.lock ./backend /pyproject.toml .
66RUN uv sync --frozen
7+ COPY ./envs/backend.env /opt/.env
8+ COPY ./backend .
9+ ENTRYPOINT ["fastapi" , "run" , "--root-path=/api" ]
Original file line number Diff line number Diff line change 22
33
44class Settings (BaseSettings ):
5- model_config = SettingsConfigDict (env_file = "/opt/.env" , extra = "ignore" )
5+ model_config = SettingsConfigDict (
6+ env_file = "/opt/.env" ,
7+ env_ignore_empty = True ,
8+ extra = "ignore" ,
9+ )
610
711 model : str = "gpt-4o-mini-2024-07-18"
812 openai_api_key : str = ""
Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ services:
22 backend :
33 image : backend:dev
44 build :
5- context : ./backend
5+ context : .
6+ dockerfile : ./backend/Dockerfile
67 entrypoint : bash -c "sleep infinity"
7- env_file :
8- - ./envs/backend.env
98 volumes :
109 - ./backend:/app
You can’t perform that action at this time.
0 commit comments