Spaces:
Sleeping
Sleeping
Download Dockerfile from OpenDILabCommunity/CleanS2S: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/spaces/OpenDILabCommunity/CleanS2S/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/OpenDILabCommunity/CleanS2S/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/OpenDILabCommunity/CleanS2S/resolve/main/Dockerfile
385 Bytes
| FROM amazonlinux:2023.2.20231011.0 as base | |
| RUN dnf install vim git nodejs -y && npm install -g pnpm | |
| # Switch to the "user" user | |
| RUN useradd -m -u 1000 user | |
| RUN mkdir -p /CleanS2S && chown -R 1000:1000 /CleanS2S | |
| USER user | |
| RUN git clone https://github.com/opendilab/CleanS2S.git | |
| WORKDIR /CleanS2S/frontend_nextjs | |
| RUN pnpm install | |
| EXPOSE 7860 | |
| CMD ["pnpm", "dev", "--port", "7860"] | |