docker/lazylibrarian/Dockerfile
2024-02-03 20:22:38 +01:00

18 lines
547 B
Docker

FROM docker.io/python:3.12-slim as base
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /app/
FROM base as build
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*
ARG LL='https://gitlab.com/LazyLibrarian/LazyLibrarian.git'
RUN git clone --depth 1 "$LL" .
FROM base
COPY --from=build /app/ .
EXPOSE 5299
RUN pip install --no-cache-dir .
CMD ["python", "LazyLibrarian.py", "--datadir", "/config", "--nolaunch"]