langchaindoc / Dockerfile
lucebert
fix docker right
3d03c3d
raw
history blame
510 Bytes
# Use an official Python runtime as a parent image
FROM python:3.11-slim
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install Chainlit
RUN pip install -e . && \
mkdir -p /app/.files && \
chmod 777 /app/.files
# Make port 8000 available to the world outside this container
EXPOSE 7860
# Run Chainlit when the container launches
CMD ["chainlit", "run", "app.py", "--port", "7860", "-w", "--host", "0.0.0.0"]