FROM ubuntu:22.04 RUN apt-get update && apt-get install -y \ python3 python3-pip python3-venv \ wget curl tar gzip bash jq \ && rm -rf /var/lib/apt/lists/* \ && adduser --disabled-password --gecos '' --uid 1000 user \ && mkdir -p /home/user/data /home/user/app \ && chown -R user:user /home/user USER user ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH \ VIRTUAL_ENV=/home/user/venv WORKDIR $HOME/app RUN python3 -m venv $VIRTUAL_ENV && \ . $VIRTUAL_ENV/bin/activate && \ pip install --no-cache-dir requests webdavclient3 huggingface_hub RUN wget -q https://github.com/OpenListTeam/OpenList/releases/download/beta/openlist-linux-amd64.tar.gz && \ tar -xzf openlist-linux-amd64.tar.gz && \ chmod +x openlist-linux-amd64/openlist && \ mv openlist-linux-amd64/openlist ./openlist && \ rm -rf openlist-linux-amd64.tar.gz openlist-linux-amd64 COPY --chown=user . $HOME/app CMD ["./openlist", "server"]