Mythus commited on
Commit
6525029
·
verified ·
1 Parent(s): e497d0c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM node:14-slim
2
 
3
  # Create a non-root user with a different UID
4
  RUN useradd -m -u 1001 user
@@ -12,10 +12,10 @@ WORKDIR $HOME/app
12
  COPY --chown=user . .
13
 
14
  # Install dependencies (if there are any Node.js dependencies, list them here)
15
- RUN npm install
16
 
17
  # Expose the desired port
18
  EXPOSE 8080
19
 
20
  # Command to run the script
21
- CMD ["node", "run.js"]
 
1
+ FROM python
2
 
3
  # Create a non-root user with a different UID
4
  RUN useradd -m -u 1001 user
 
12
  COPY --chown=user . .
13
 
14
  # Install dependencies (if there are any Node.js dependencies, list them here)
15
+ RUN pip install requests
16
 
17
  # Expose the desired port
18
  EXPOSE 8080
19
 
20
  # Command to run the script
21
+ CMD ["pythone", "run.py"]