Spaces:
Runtime error
Runtime error
Add application file
Browse files- Dockerfile +11 -8
Dockerfile
CHANGED
@@ -1,15 +1,18 @@
|
|
1 |
FROM python:3.11
|
2 |
WORKDIR /code
|
|
|
|
|
3 |
COPY ./requirements.txt /code/requirements.txt
|
4 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
5 |
COPY ./s2smodels.py /code/
|
6 |
COPY ./macros.py /code/
|
7 |
-
COPY ./utils/
|
8 |
-
COPY ./modules/
|
9 |
-
COPY ./models/
|
10 |
-
COPY ./data/
|
11 |
-
COPY ./prompts/
|
12 |
-
COPY ./customs/
|
13 |
-
COPY ./main.py /code/
|
14 |
|
15 |
-
|
|
|
|
1 |
FROM python:3.11
|
2 |
WORKDIR /code
|
3 |
+
|
4 |
+
# Copy the requirements file and install dependencies
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
7 |
COPY ./s2smodels.py /code/
|
8 |
COPY ./macros.py /code/
|
9 |
+
COPY ./utils/ /code/utils/
|
10 |
+
COPY ./modules/ /code/modules/
|
11 |
+
COPY ./models/ /code/models/
|
12 |
+
COPY ./data/ /code/data/
|
13 |
+
COPY ./prompts/ /code/prompts/
|
14 |
+
COPY ./customs/ /code/customs/
|
15 |
+
COPY ./main.py /code/
|
16 |
|
17 |
+
# Specify the command to run the application
|
18 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
|