fix: by pip all packages
This commit is contained in:
parent
64e2fbba27
commit
0546a642d2
12
Dockerfile
12
Dockerfile
@ -6,19 +6,21 @@ ENV MKDOCS_VERSION=1.5.0
|
||||
ENV VENV_PATH=/opt/venv
|
||||
ENV PYTHONPATH="/usr/lib/python3/dist-packages:${PYTHONPATH}"
|
||||
|
||||
# Update & install dependencies
|
||||
# Update & install OS dependencies
|
||||
RUN apt update && apt install -y --no-install-recommends \
|
||||
ca-certificates bash git openssh-client python3 python3-venv python3-pip \
|
||||
build-essential libfuse3-dev libcurl4-openssl-dev libxml2-dev \
|
||||
pkg-config automake autoconf libtool \
|
||||
jq curl graphviz ghostscript fonts-dejavu \
|
||||
python3-flask python3-requests python3-redis python3-webdav rsync && \
|
||||
jq curl graphviz ghostscript fonts-dejavu rsync && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Create a virtual environment and activate it
|
||||
# Create a virtual environment
|
||||
RUN python3 -m venv $VENV_PATH && \
|
||||
$VENV_PATH/bin/pip install --upgrade pip
|
||||
|
||||
# Install Python dependencies via pip (flask, requests, redis, webdavclient3)
|
||||
RUN $VENV_PATH/bin/pip install flask requests redis webdavclient3
|
||||
|
||||
# Install MkDocs & plugins inside the virtual environment
|
||||
RUN $VENV_PATH/bin/pip install mkdocs==${MKDOCS_VERSION} && \
|
||||
$VENV_PATH/bin/pip install mkdocs-material fontawesome-markdown mkdocs-mermaid2-plugin \
|
||||
@ -38,4 +40,4 @@ COPY script_creator.py /usr/local/bin/script_creator.py
|
||||
ENV PATH="$VENV_PATH/bin:$PATH"
|
||||
|
||||
# Default command
|
||||
CMD ["python3", "/usr/local/bin/script_creator.py"]
|
||||
CMD ["python3", "/usr/local/bin/script_creator.py"]
|
Loading…
x
Reference in New Issue
Block a user