forked from Ajay15Bhat/Scaler-hackathon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (32 loc) · 772 Bytes
/
Dockerfile
File metadata and controls
38 lines (32 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# ------------------------
# BASE IMAGE
# ------------------------
FROM python:3.10-slim
# ------------------------
# SET WORKING DIRECTORY
# ------------------------
WORKDIR /app
# ------------------------
# COPY FILES
# ------------------------
COPY . .
# ------------------------
# INSTALL DEPENDENCIES
# ------------------------
RUN pip install --no-cache-dir \
fastapi \
uvicorn \
pydantic \
requests \
python-dotenv \
openai \
openenv-core
ENV PATH="/root/.local/bin:$PATH"
# ------------------------
# EXPOSE PORT
# ------------------------
EXPOSE 7860
# ------------------------
# RUN SERVER
# ------------------------
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]