Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +13 -13
Dockerfile
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
# Get the image of python
|
2 |
-
FROM python:3.9
|
3 |
-
|
4 |
-
# Copy all the files from local-dir to machine dir
|
5 |
-
COPY . .
|
6 |
-
|
7 |
-
# Set the current directory as working dir
|
8 |
-
WORKDIR /
|
9 |
-
|
10 |
-
# Install the requirements
|
11 |
-
RUN pip install --no-cache-dir -r ./
|
12 |
-
|
13 |
-
# Launch the server
|
14 |
CMD ["uvicorn", "backend:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
+
# Get the image of python
|
2 |
+
FROM python:3.9
|
3 |
+
|
4 |
+
# Copy all the files from local-dir to machine dir
|
5 |
+
COPY . .
|
6 |
+
|
7 |
+
# Set the current directory as working dir
|
8 |
+
WORKDIR /
|
9 |
+
|
10 |
+
# Install the requirements
|
11 |
+
RUN pip install --no-cache-dir -r ./requirement.txt
|
12 |
+
|
13 |
+
# Launch the server
|
14 |
CMD ["uvicorn", "backend:app", "--host", "0.0.0.0", "--port", "7860"]
|