Spaces:
Runtime error
Runtime error
adityasugandhi
commited on
Commit
·
30343f7
1
Parent(s):
e1c5524
requirements.txt
Browse files- Dockerfile +8 -19
Dockerfile
CHANGED
|
@@ -1,22 +1,11 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
|
| 3 |
-
# Set
|
| 4 |
-
|
| 5 |
|
| 6 |
-
# Copy
|
| 7 |
-
COPY
|
| 8 |
|
| 9 |
-
#
|
| 10 |
-
RUN
|
| 11 |
-
|
| 12 |
-
# Activate the conda environment
|
| 13 |
-
SHELL ["conda", "run", "-n", "RAGAPP", "/bin/bash", "-c"]
|
| 14 |
-
|
| 15 |
-
# Set working directory
|
| 16 |
-
WORKDIR /code
|
| 17 |
-
|
| 18 |
-
# Copy remaining files
|
| 19 |
-
COPY . .
|
| 20 |
-
|
| 21 |
-
# Command to run the application
|
| 22 |
-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
+
# Use an existing Docker image as a base
|
| 2 |
+
FROM python:3.9
|
| 3 |
|
| 4 |
+
# Set the working directory inside the container
|
| 5 |
+
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Copy the requirements file into the container at /app
|
| 8 |
+
COPY requirements.txt /requirements
|
| 9 |
|
| 10 |
+
# Install the dependencies
|
| 11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|