JellyPlex-Watched/Dockerfile.slim

23 lines
405 B
Docker

FROM python:3.11-slim
ENV PUID=1000
ENV PGID=1000
RUN apt-get update && \
apt-get install tini gosu --yes --no-install-recommends && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY ./requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN chmod +x *.sh
ENTRYPOINT ["/bin/tini", "--", "/app/entrypoint.sh"]
CMD ["python", "-u", "main.py"]