MatAnyone / Dockerfile
PGSCOM's picture
Create Dockerfile
3db37f2 verified
raw
history blame contribute delete
601 Bytes
FROM python:3.10
WORKDIR /home/user/app
# Instalar dependencias del sistema, reemplazando libgl1-mesa-glx con libgl1
RUN apt-get update && apt-get install -y \
git \
git-lfs \
ffmpeg \
libsm6 \
libxext6 \
cmake \
rsync \
libgl1 \
&& rm -rf /var/lib/apt/lists/* \
&& git lfs install
# Copiar archivos del proyecto
COPY --chown=1000:1000 . /home/user/app/
# Instalar dependencias de Python
RUN pip install --no-cache-dir -r requirements.txt
# Crear usuario
RUN useradd -m -u 1000 user && chown -R user /home/user/app
USER user
# Comando por defecto
CMD ["python", "hugging_face/app.py"]