QGTNL commited on
Commit
155d4e9
·
verified ·
1 Parent(s): ff73b5d

fix(space): point Docker to backend FastAPI app

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -7
Dockerfile CHANGED
@@ -1,9 +1,11 @@
1
  FROM python:3.10-slim
2
- RUN useradd -m -u 1000 user
3
- USER user
4
- ENV PATH="/home/user/.local/bin:$PATH"
5
  WORKDIR /app
6
- COPY --chown=user ./requirements.txt /app/requirements.txt
7
- RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
8
- COPY --chown=user . /app
9
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
1
  FROM python:3.10-slim
2
+
 
 
3
  WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
7
+
8
+ COPY . .
9
+
10
+ EXPOSE 7860
11
+ CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860"]