# 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"] |