Download Dockerfile from Zulelee/iLearn: direct link, hf CLI and curl.
- Browser
- Download file 555 Bytes
-
https://huggingface.co/spaces/Zulelee/iLearn/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Zulelee/iLearn/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Zulelee/iLearn/resolve/main/Dockerfile
555 Bytes
| # Use the official Python image as base | |
| FROM python:3.9-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Install Node.js | |
| RUN apt-get update && \ | |
| apt-get install -y nodejs npm | |
| # Clone the GitHub repository | |
| RUN git clone https://github.com/Zulelee/ilearn.git . | |
| # Install FastAPI dependencies | |
| RUN pip install -r requirements.txt | |
| # Install Node.js dependencies | |
| RUN npm install --legacy-peer-deps | |
| # Expose the port that Next.js uses (default is 3000) | |
| EXPOSE 3000 | |
| # Command to run the development environment | |
| CMD ["npm", "run", "dev"] |