liquid/web/Dockerfile
2025-05-19 10:56:39 +07:00

26 lines
552 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
RUN python manage.py collectstatic --noinput
COPY . .
COPY models ./models
CMD ["daphne", "-b", "0.0.0.0", "-p", "8106", "app.asgi:application"]