| | FROM qilan28/ff:v1.0 |
| | USER root |
| |
|
| |
|
| |
|
| | |
| | |
| | |
| | RUN if ! id -u vncuser > /dev/null 2>&1; then \ |
| | adduser -D -u 1000 vncuser; \ |
| | echo "Created vncuser"; \ |
| | else \ |
| | echo "User vncuser already exists, skipping creation"; \ |
| | fi && \ |
| | mkdir -p /home/vncuser && \ |
| | chown -R vncuser:vncuser /home/vncuser |
| |
|
| | |
| | RUN mkdir -p /tmp/app /tmp/app/frp /.kaggle /data /root/.kaggle && \ |
| | chmod -R 777 /tmp/app /tmp/app/frp /.kaggle /data /root/.kaggle |
| |
|
| | |
| | |
| | |
| | RUN apk update && \ |
| | apk add --no-cache \ |
| | ca-certificates \ |
| | curl \ |
| | wget \ |
| | bzip2 \ |
| | p7zip \ |
| | pigz \ |
| | pv \ |
| | git \ |
| | git-lfs \ |
| | sudo \ |
| | python3 \ |
| | python3-dev \ |
| | py3-pip \ |
| | build-base \ |
| | linux-headers \ |
| | gcc \ |
| | musl-dev \ |
| | libffi-dev \ |
| | openssl-dev \ |
| | nodejs \ |
| | npm \ |
| | bash \ |
| | py3-requests \ |
| | py3-flask \ |
| | py3-pexpect \ |
| | tini \ |
| | procps \ |
| | py3-psutil |
| |
|
| | |
| | WORKDIR /data |
| |
|
| | |
| | RUN pip3 install --upgrade pip --break-system-packages && \ |
| | pip3 install --no-cache-dir --break-system-packages \ |
| | jupyterlab \ |
| | notebook \ |
| | pexpect \ |
| | psutil \ |
| | requests \ |
| | pytz \ |
| | flask \ |
| | kaggle \ |
| | PyYAML \ |
| | huggingface_hub \ |
| | gradio \ |
| | websockify \ |
| | ipykernel && \ |
| | pip3 install --upgrade huggingface_hub --break-system-packages |
| |
|
| | |
| | |
| | RUN wget -t 3 --retry-connrefused --timeout=30 -O "/home/vncuser/ff.sh" "https://huggingface.co/datasets/Qilan2/ff/raw/main/ff.sh" && \ |
| | wget -t 3 --retry-connrefused --timeout=30 -O "/data/bf.py" "https://huggingface.co/datasets/Qilan2/ff/raw/main/bf.py" && \ |
| | wget -t 3 --retry-connrefused --timeout=30 -O "/data/ff.py" "https://huggingface.co/datasets/Qilan2/ff/raw/main/ff.py" && \ |
| | wget -t 3 --retry-connrefused --timeout=30 -O "/server-ff.sh" "https://huggingface.co/datasets/Qilan2/ff/raw/main/server-ff.sh" && \ |
| | wget -t 3 --retry-connrefused --timeout=30 -O "/data/b.py" "https://huggingface.co/datasets/Qilan2/st-server/raw/main/sbx/b.py" && \ |
| | chmod 777 /home/vncuser/ff.sh /server-ff.sh |
| |
|
| | |
| | USER vncuser |
| |
|
| | |
| | RUN ls -l /home/vncuser/ff.sh && ls -l /server-ff.sh |
| |
|
| | CMD ["/server-ff.sh"] |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |