Spaces:
Paused
Paused
File size: 968 Bytes
cd3da94 760dd6c cd3da94 760dd6c cd3da94 760dd6c cd3da94 760dd6c cd3da94 760dd6c cd3da94 760dd6c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
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"]
|