chainlit / Dockerfile
thanthamky's picture
Update Dockerfile
f3f59d2 verified
raw
history blame contribute delete
414 Bytes
# Use a lightweight Python image
FROM python:3.11-slim
# Set the working directory
WORKDIR /app
# Copy dependencies and install them
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY ./src/app.py .
# Expose the default Chainlit port
EXPOSE 8501
# Command to run the Chainlit app
CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "8501"]