Evogoatml commited on
Commit
fb73d52
·
1 Parent(s): 65464fc

fix: update Dockerfile to use backend.main

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -1,6 +1,11 @@
1
  FROM python:3.12-slim
 
2
  WORKDIR /workspace
3
  COPY . /workspace
 
4
  RUN pip install --no-cache-dir -r requirements.txt
 
 
 
5
  EXPOSE 7860
6
  CMD ["python", "-m", "uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.12-slim
2
+
3
  WORKDIR /workspace
4
  COPY . /workspace
5
+
6
  RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ ENV PYTHONPATH=/workspace:/workspace/backend
9
+
10
  EXPOSE 7860
11
  CMD ["python", "-m", "uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860"]