18 lines
547 B
Docker
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"]
|