TANMIHA commited on
Commit
dfa0857
·
verified ·
1 Parent(s): 57dd4f8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -13
Dockerfile CHANGED
@@ -1,13 +1,14 @@
1
- FROM python:3.11-slim
2
- WORKDIR /app
3
- RUN apt-get update && apt-get install -y \
4
- build-essential \
5
- curl \
6
- && rm -rf /var/lib/apt/lists/*
7
- ENV PYTHONPATH=/app
8
- COPY requirements.txt .
9
- RUN pip install --upgrade pip
10
- RUN pip install --no-cache-dir -r requirements.txt
11
- COPY . .
12
- EXPOSE 7860
13
- CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
+ FROM python:3.11-slim
2
+ WORKDIR /app
3
+ RUN apt-get update && apt-get install -y \
4
+ build-essential \
5
+ curl \
6
+ && rm -rf /var/lib/apt/lists/*
7
+ ENV PYTHONPATH=/app
8
+ COPY requirements.txt .
9
+ RUN pip install --upgrade pip
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+ COPY . .
12
+ EXPOSE 7860
13
+ # Point to server/app.py -> the 'app' object
14
+ CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]