Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +8 -4
Dockerfile
CHANGED
|
@@ -8,15 +8,19 @@ WORKDIR /app
|
|
| 8 |
COPY . /app
|
| 9 |
|
| 10 |
# Install any needed packages specified in requirements.txt
|
| 11 |
-
COPY requirements.txt /app/
|
| 12 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
# Make port 8000 available to the world outside this container
|
| 15 |
EXPOSE 8080
|
| 16 |
|
| 17 |
# Define environment variable
|
| 18 |
ENV UVICORN_HOST=0.0.0.0
|
| 19 |
-
ENV UVICORN_PORT=
|
| 20 |
|
| 21 |
# Run the application
|
| 22 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
|
|
|
|
| 8 |
COPY . /app
|
| 9 |
|
| 10 |
# Install any needed packages specified in requirements.txt
|
| 11 |
+
# COPY requirements.txt /app/
|
| 12 |
+
# RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
+
RUN pip install uvicorn
|
| 14 |
+
RUN pip install fastapi
|
| 15 |
+
RUN pip install python-dotenv
|
| 16 |
+
RUN pip install openai
|
| 17 |
+
RUN pip install chainlit
|
| 18 |
# Make port 8000 available to the world outside this container
|
| 19 |
EXPOSE 8080
|
| 20 |
|
| 21 |
# Define environment variable
|
| 22 |
ENV UVICORN_HOST=0.0.0.0
|
| 23 |
+
ENV UVICORN_PORT=8080
|
| 24 |
|
| 25 |
# Run the application
|
| 26 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
|