NitinBot002 commited on
Commit
936fa66
·
verified ·
1 Parent(s): bca5d8e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -26
Dockerfile CHANGED
@@ -1,26 +1,26 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.8-slim
3
-
4
- # Set the working directory in the container
5
- WORKDIR /app
6
-
7
- # Copy the current directory contents into the container at /app
8
- COPY . /app
9
-
10
- # Install any needed packages specified in requirements.txt
11
- RUN pip install --no-cache-dir -r requirements.txt
12
-
13
- # Install Node.js and nport
14
- RUN apt update && apt install -y curl && \
15
- curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
16
- apt install -y nodejs && \
17
- npm install -g nport
18
-
19
- # Expose port 5000
20
- EXPOSE 7860
21
-
22
- # Define environment variable for Flask
23
- ENV FLASK_APP=AgriGo/app.py
24
-
25
- # Run the application
26
- CMD ["flask", "run", "--host=0.0.0.0"]
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.8-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the current directory contents into the container at /app
8
+ COPY . /app
9
+
10
+ # Install any needed packages specified in requirements.txt
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Install Node.js and nport
14
+ RUN apt update && apt install -y curl && \
15
+ curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
16
+ apt install -y nodejs && \
17
+ npm install -g nport
18
+
19
+ # Expose port 5000
20
+ EXPOSE 5000
21
+
22
+ # Define environment variable for Flask
23
+ ENV FLASK_APP=AgriGo/app.py
24
+
25
+ # Run the application
26
+ CMD ["flask", "run", "--host=0.0.0.0"]