dockerfix / Dockerfile
MercuryNex's picture
Create Dockerfile
6f71b05 verified
raw
history blame contribute delete
603 Bytes
FROM python:3.10
RUN apt-get update && apt-get install -y \
git \
git-lfs \
ffmpeg \
libsm6 \
libxext6 \
cmake \
rsync \
libgl1 \
libegl1 \
libopengl0 \
&& rm -rf /var/lib/apt/lists/* \
&& git lfs install
WORKDIR /home/user/app
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
ENV XDG_CACHE_HOME=/home/user/.cache
ENV TRANSFORMERS_CACHE=/home/user/.cache/huggingface/transformers
ENV HF_HOME=/home/user/.cache/huggingface
RUN mkdir -p /home/user/.cache/huggingface/transformers && chown -R 1000:1000 /home/user/.cache
CMD ["python", "app.py"]