16 lines
460 B
Docker
16 lines
460 B
Docker
# Dockerfile
|
|
|
|
# Base image and add git (for peertube library)
|
|
FROM python:3.13-alpine
|
|
RUN apk update && apk add --no-cache git shadow ffmpeg
|
|
|
|
RUN groupadd clipperuser && adduser --ingroup clipperuser --disabled-password --gecos "" clipperuser
|
|
|
|
# Set up app directory
|
|
USER clipperuser
|
|
WORKDIR /app
|
|
COPY . .
|
|
|
|
RUN pip install --no-cache-dir requests websocket-client git+https://framagit.org/framasoft/peertube/clients/python.git
|
|
CMD ["python", "-u", "main.py"]
|