Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +19 -23
Dockerfile
CHANGED
@@ -1,23 +1,19 @@
|
|
1 |
-
# Use the official python 3.9 image
|
2 |
-
FROM python:3.10-slim-bullseye
|
3 |
-
|
4 |
-
# Set the working directory to corrent folder
|
5 |
-
WORKDIR .
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
EXPOSE 7860
|
21 |
-
|
22 |
-
CMD ["python", "-m", "chainlit", "run", "model.py", "-h", "--port", "7860", "--host", "0.0.0.0"]
|
23 |
-
|
|
|
1 |
+
# Use the official python 3.9 image
|
2 |
+
FROM python:3.10-slim-bullseye
|
3 |
+
|
4 |
+
# Set the working directory to corrent folder
|
5 |
+
WORKDIR .
|
6 |
+
|
7 |
+
# Copy the requirements to working directory
|
8 |
+
COPY ./requirements.txt requirements.txt
|
9 |
+
|
10 |
+
# Install all packages in requirements.txt
|
11 |
+
RUN pip install --no-cache-dir --upgrade -r ./requirements.txt
|
12 |
+
|
13 |
+
WORKDIR app/
|
14 |
+
COPY . /app
|
15 |
+
|
16 |
+
EXPOSE 7860
|
17 |
+
|
18 |
+
CMD ["python", "-m", "chainlit", "run", "model.py", "-h", "--port", "7860"]
|
19 |
+
|
|
|
|
|
|
|
|