File size: 471 Bytes
51cdd3e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
FROM python:3.10
WORKDIR /app
RUN apt-get update && apt-get install -y \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN playwright install --with-deps chromium
RUN useradd -m -u 1000 user && \
mkdir -p /app/output /app/tmp_brat && \
chown -R user:user /app && \
chmod -R 777 /app/output /app/tmp_brat
USER user
COPY --chown=user . .
EXPOSE 7860
CMD ["python", "run.py"]
|