sreepathi-ravikumar commited on
Commit
1e99367
·
verified ·
1 Parent(s): 7531ae8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -9
Dockerfile CHANGED
@@ -1,16 +1,16 @@
1
- # Use an official Python and Node.js base image
2
  FROM node:18-bullseye
3
 
4
- # Install Python (already included in bullseye variant, but ensure pip)
5
- RUN apt-get update && \
6
- apt-get install -y python3 python3-pip && \
7
- ln -s /usr/bin/python3 /usr/bin/python
8
 
9
- # Set working directory
10
  WORKDIR /app
11
 
12
- # Copy all files into the container
13
  COPY . .
14
 
15
- # Command to run the Python script
16
- CMD ["python", "app.py"]
 
 
 
 
 
 
 
1
  FROM node:18-bullseye
2
 
3
+ # Install Python + pip
4
+ RUN apt-get update && apt-get install -y python3 python3-pip
 
 
5
 
 
6
  WORKDIR /app
7
 
 
8
  COPY . .
9
 
10
+ # Install Python deps if needed
11
+ RUN pip3 install -r requirements.txt
12
+
13
+ # Expose Flask app port
14
+ EXPOSE 7860
15
+
16
+ CMD ["python3", "app.py"]