VeridiaVisionAI / Dockerfile
SaiCraze's picture
Update Dockerfile
294dc74 verified
raw
history blame contribute delete
586 Bytes
# Use a lightweight Python image
FROM python:3.9-slim
# Set working directory inside the container
WORKDIR /app
# Fix apt issues, update, and install dependencies
RUN apt-get clean && apt-get update && apt-get install -y \
libg11-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Copy all project files to /app
COPY . /app
# Upgrade pip to the latest version
RUN pip install -- no-cache-dir -- upgrade pip
# Install Python dependencies
RUN pip install -- no-cache-dir -r requirements.txt
# Expose Flask app's port
EXPOSE 7860
# Run the Flask app
CMD ["python", "app.py"]