pvanand commited on
Commit
fec8846
·
verified ·
1 Parent(s): 5d42805

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -20
Dockerfile CHANGED
@@ -1,20 +1,20 @@
1
- FROM python:3.11-slim
2
-
3
- # Install Tkinter dependencies
4
- RUN apt-get update && apt-get install -y \
5
- tk \
6
- && apt-get clean \
7
- && rm -rf /var/lib/apt/lists/*
8
-
9
- WORKDIR /app
10
-
11
- COPY requirements.txt .
12
- RUN pip install --no-cache-dir -r requirements.txt \
13
- && pip install torch --index-url https://download.pytorch.org/whl/cpu \
14
- && pip install sentence-transformers
15
-
16
- COPY . .
17
-
18
- EXPOSE 80
19
-
20
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80", "--log-level", "debug"]
 
1
+ FROM python:3.11-slim
2
+
3
+ # Install Tkinter dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ tk \
6
+ && apt-get clean \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ WORKDIR /app
10
+
11
+ COPY requirements.txt .
12
+ RUN pip install --no-cache-dir -r requirements.txt \
13
+ && pip install torch --index-url https://download.pytorch.org/whl/cpu \
14
+ && pip install sentence-transformers
15
+
16
+ COPY . .
17
+
18
+ EXPOSE 7860
19
+
20
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "debug"]