Initialisation depot
This commit is contained in:
23
Wiki-print/Dockerfile
Normal file
23
Wiki-print/Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
|
||||
# Install pandoc, wget, and Poetry (SVG support is native in pandoc/LibreOffice)
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y pandoc wget \
|
||||
&& pip install poetry \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY pyproject.toml ./
|
||||
RUN poetry install --no-root
|
||||
|
||||
COPY main.py ./
|
||||
|
||||
VOLUME /app/data
|
||||
|
||||
|
||||
CMD ["poetry", "run", "python", "main.py"]
|
||||
Reference in New Issue
Block a user