srivatsavdamaraju
commited on
Create Dockerfile
Browse files- Dockerfile +19 -0
Dockerfile
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
|
3 |
+
# Set the working directory in the container
|
4 |
+
WORKDIR /code
|
5 |
+
# Copy the requirements file into the container at /app
|
6 |
+
COPY requirements.txt ./requirements.txt
|
7 |
+
|
8 |
+
|
9 |
+
# Install uvicorn
|
10 |
+
RUN pip install uvicorn
|
11 |
+
|
12 |
+
|
13 |
+
# Install Python packages from requirements.txt
|
14 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
15 |
+
|
16 |
+
|
17 |
+
# Copy the current directory contents into the container at /app
|
18 |
+
COPY . .
|
19 |
+
CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app" ]
|