Spaces:
Runtime error
Runtime error
Download Dockerfile from phamphonga6/react-web: direct link, hf CLI and curl.
- Browser
- Download file 202 Bytes
-
https://huggingface.co/spaces/phamphonga6/react-web/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/phamphonga6/react-web/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/phamphonga6/react-web/resolve/main/Dockerfile
202 Bytes
| FROM node:18 | |
| WORKDIR /app | |
| # Copy file cần thiết | |
| COPY build/ ./ | |
| # Cài đặt serve | |
| RUN npm install -g serve | |
| # Port ứng dụng | |
| EXPOSE 3000 | |
| # Chạy serve | |
| CMD ["serve", "-s", ".", "-l", "3000"] |