Update Dockerfile
Browse files- Dockerfile +9 -5
Dockerfile
CHANGED
@@ -7,14 +7,18 @@ WORKDIR /app
|
|
7 |
# Clone the GitHub repository
|
8 |
RUN git clone https://github.com/Zulelee/ilearn.git .
|
9 |
|
10 |
-
#
|
11 |
-
|
|
|
12 |
|
13 |
-
# Install dependencies
|
14 |
-
RUN
|
|
|
|
|
|
|
15 |
|
16 |
# Expose the port that Next.js uses (default is 3000)
|
17 |
EXPOSE 3000
|
18 |
|
19 |
# Command to run the development environment
|
20 |
-
CMD ["npm", "run", "dev"]
|
|
|
7 |
# Clone the GitHub repository
|
8 |
RUN git clone https://github.com/Zulelee/ilearn.git .
|
9 |
|
10 |
+
# Install Python and pip
|
11 |
+
RUN apt-get update && \
|
12 |
+
apt-get install -y python3 python3-pip
|
13 |
|
14 |
+
# Install FastAPI dependencies
|
15 |
+
RUN pip3 install -r requirements.txt
|
16 |
+
|
17 |
+
# Install Node.js dependencies
|
18 |
+
RUN npm install --legacy-peer-deps
|
19 |
|
20 |
# Expose the port that Next.js uses (default is 3000)
|
21 |
EXPOSE 3000
|
22 |
|
23 |
# Command to run the development environment
|
24 |
+
CMD ["npm", "run", "dev"]
|