matchaSentiment / Dockerfile
seedflora's picture
Initial Space upload from matchaSentiment repo
4ce2b3e verified
raw
history blame contribute delete
578 Bytes
FROM pytorch/pytorch:2.6.0-cuda12.4-cudnn9-runtime
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
HF_HOME=/workspace/.cache/huggingface \
TRANSFORMERS_CACHE=/workspace/.cache/huggingface \
MPLBACKEND=Agg \
PORT=7860
WORKDIR /workspace
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN python -m pip install --upgrade pip && \
pip install -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["python", "app.py"]