cv_project_test / Dockerfile
Himel09's picture
Update Dockerfile
9395d4a verified
Raw
History Blame Contribute Delete
618 Bytes
FROM python:3.10-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV HF_HOME=/tmp/huggingface
ENV TRANSFORMERS_CACHE=/tmp/huggingface/transformers
ENV TORCH_HOME=/tmp/torch
WORKDIR /app/CV-Project
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
wget \
curl \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender1 \
&& rm -rf /var/lib/apt/lists/*
COPY CV-Project/requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY CV-Project/ .
EXPOSE 7860
CMD ["python", "app.py"]