Scanner / Dockerfile
mike23415's picture
Create Dockerfile
74a51ff verified
raw
history blame contribute delete
317 Bytes
FROM python:3.10-slim
# Install system dependencies
RUN apt-get update && apt-get install -y libglib2.0-0 libsm6 libxext6 libxrender-dev
# Set working directory
WORKDIR /app
# Copy files
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
EXPOSE 7860
CMD ["python", "app.py"]