liquid/web/Dockerfile

27 lines
528 B
Docker

FROM python:3.11.1
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
libgl1 \
libglib2.0-0 \
gcc \
libsm6 \
libxext6 \
libxrender-dev \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get install -y ffmpeg
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app/web
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
COPY models ./models
# RUN chmod +x docker/daphne_entrypoint.sh
# ENTRYPOINT ["./docker/daphne_entrypoint.sh"]