Atlast / Dockerfile
Jemayz's picture
Update Dockerfile
da6fbb0 verified
raw
history blame contribute delete
545 Bytes
# Force rebuild v3
FROM python:3.11-slim
WORKDIR /app
# Install build tools
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Create writable directories for the database and uploads
RUN mkdir -p /app/chroma_db && chmod -R 777 /app/chroma_db
RUN mkdir -p /app/Uploads && chmod -R 777 /app/Uploads
# RUN mkdir -p /app/flask_session && chmod -R 777 /app/flask_session
EXPOSE 7860
CMD ["python", "app.py"]