Spaces:
Paused
Paused
Update Dockerfile
Browse files2 unmodified lines34567896711121314891011121314151819201617181920212425262223242526272829303031322 unmodified linesRUN 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 && rm -rf /var/lib/apt/lists/*
USER userENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH \ VIRTUAL_ENV=/home/user/venvRUN adduser --disabled-password --gecos '' --uid 1000 userRUN mkdir -p /home/user/data && chown -R user:user /home/user/data
ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATHWORKDIR $HOME/app
ENV VIRTUAL_ENV=$HOME/venvRUN python3 -m venv $VIRTUAL_ENV && \ . $VIRTUAL_ENV/bin/activate && \ pip install --no-cache-dir requests webdavclient3 huggingface_hubRUN python3 -m venv $VIRTUAL_ENVENV PATH="$VIRTUAL_ENV/bin:$PATH"RUN 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 find . -type f -name "openlist" -exec chmod +x {} \; && \ find . -type f -name "openlist" -exec mv {} . \; && \ rm -rf openlist-linux-amd64.tar.gz *linux-amd64*
COPY --chown=user . $HOME/appCOPY --chown=user sync_data.sh $HOME/app/RUN chmod +x $HOME/app/sync_data.shRUN chown -R user:user /home/user
CMD ["./openlist", "server"]USER userCMD ["/bin/bash", "-c", "$HOME/app/sync_data.sh & sleep 15 && ./openlist server"]Dockerfile+17-15