Wimmboo commited on
Commit
b2fc3ac
·
1 Parent(s): eeb5b0e

simplify Dockerfile, use python3.11

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
- FROM python:3.12-slim
2
  WORKDIR /app
3
  COPY requirements.txt .
4
  RUN pip install --no-cache-dir -r requirements.txt
5
  COPY . .
6
  EXPOSE 7860
7
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--forwarded-allow-ips", "*"]
 
1
+ FROM python:3.11-slim
2
  WORKDIR /app
3
  COPY requirements.txt .
4
  RUN pip install --no-cache-dir -r requirements.txt
5
  COPY . .
6
  EXPOSE 7860
7
+ CMD uvicorn main:app --host 0.0.0.0 --port 7860