Spaces:
Paused
Paused
Update Dockerfile
Browse files2 unmodified lines34567891011121314151617181920212223242526272829302 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/userUSER userENV HOME=/home/user \PATH=/home/user/.local/bin:$PATH \VIRTUAL_ENV=/home/user/venvWORKDIR $HOME/appRUN python3 -m venv $VIRTUAL_ENV && \. $VIRTUAL_ENV/bin/activate && \pip install --no-cache-dir requests webdavclient3 huggingface_hubRUN 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-amd64COPY --chown=user . $HOME/appCMD ["./openlist", "server"]2 unmodified lines345678910111213141516171819202122232425262728293031322 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/*RUN adduser --disabled-password --gecos '' --uid 1000 userRUN mkdir -p /home/user/data && chown -R user:user /home/user/dataENV HOME=/home/user \PATH=/home/user/.local/bin:$PATHWORKDIR $HOME/appENV VIRTUAL_ENV=$HOME/venvRUN python3 -m venv $VIRTUAL_ENVENV PATH="$VIRTUAL_ENV/bin:$PATH"RUN pip install --no-cache-dir requests webdavclient3 huggingface_hubRUN wget -q https://github.com/OpenListTeam/OpenList/releases/download/beta/openlist-linux-amd64.tar.gz && \tar -xzf openlist-linux-amd64.tar.gz && \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/userUSER userCMD ["/bin/bash", "-c", "$HOME/app/sync_data.sh & sleep 15 && ./openlist server"]
Dockerfile+17-15