eshop-chat / Dockerfile
jitendra.kasaudhan
Use chromadb to store vector embeddings of static product data
b47a98a
raw
history blame contribute delete
677 Bytes
# Use the official Python image as the base image
FROM python:3.9
# Create a non-root user
RUN useradd -m myuser
# Set the working directory inside the container
WORKDIR /app
# Copy the requirements file into the container
COPY requirements.txt .
# Install the required packages using pip
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code into the container
COPY . .
# Set ownership of the app directory to the non-root user
RUN chown -R myuser:myuser /app
# Switch to the non-root user
USER myuser
# Specify the command to run when the container starts
CMD ["chainlit", "run", "app.py", "--port", "7860"]
# chainlit run app.py --port 7860