File size: 555 Bytes
65dba40
 
611486c
 
 
 
65dba40
 
 
 
611486c
 
 
7e07bc2
65dba40
7e07bc2
 
4db1771
611486c
 
 
 
 
65dba40
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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"]