Skip to content

Commit bc585bb

Browse files
NPA-6139: Attempt to ensure docker app uses same directory structure as repo
1 parent db947a3 commit bc585bb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ RUN find /app -type d -name "test*" -exec rm -rf {} + && \
99
find /app -type d \( -name ".pytest_cache" -o -name ".ruff_cache" \) -exec rm -rf {} +
1010

1111
WORKDIR /app
12+
ENV PYTHONPATH="/app:/"
1213

1314
RUN uv sync --project=app/pyproject.toml --only-group=app
1415
RUN rm pyproject.toml uv.lock Dockerfile
1516

1617
EXPOSE 9000
1718

18-
CMD ["uv", "run", "gunicorn", "api.app:app", "--bind=0.0.0.0:9000"]
19+
CMD ["uv", "run", "gunicorn", "app.api.app:app", "--bind=0.0.0.0:9000"]

0 commit comments

Comments
 (0)