Initial commit
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
FROM python:3.13-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt pyproject.toml README.md ./
|
||||
COPY src ./src
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install --no-install-recommends -y \
|
||||
fonts-dejavu-core \
|
||||
libfontconfig1 \
|
||||
libglib2.0-0 \
|
||||
libharfbuzz-subset0 \
|
||||
libharfbuzz0b \
|
||||
libjpeg62-turbo \
|
||||
libpango-1.0-0 \
|
||||
libpangoft2-1.0-0 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& pip install --no-cache-dir -r requirements.txt \
|
||||
&& pip install --no-cache-dir .
|
||||
|
||||
RUN useradd --create-home --shell /usr/sbin/nologin pvereport
|
||||
USER pvereport
|
||||
|
||||
VOLUME ["/reports"]
|
||||
|
||||
ENTRYPOINT ["pve-backup-report"]
|
||||
Reference in New Issue
Block a user