Spaces:
Sleeping
Sleeping
File size: 740 Bytes
8f0bd30 af3b09e 8f0bd30 af3b09e 8f0bd30 af3b09e acc9cd9 af3b09e 3045eed 4116dc5 acc9cd9 8f0bd30 af3b09e 8f0bd30 3045eed 8f0bd30 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# Use an official Python runtime as a base image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container
COPY . /app
# Install any needed packages specified in requirements.txt
# COPY requirements.txt /app/
# RUN pip install --no-cache-dir -r requirements.txt
RUN pip install uvicorn
RUN pip install fastapi
RUN pip install python-dotenv
RUN pip install openai
RUN pip install chainlit
RUN chmod -R 777 /app
# Make port 8000 available to the world outside this container
EXPOSE 8080
# Define environment variable
ENV UVICORN_HOST=0.0.0.0
ENV UVICORN_PORT=8080
# Run the application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
|