Tokipo commited on
Commit
c0965a7
·
verified ·
1 Parent(s): 46fdce4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -11
Dockerfile CHANGED
@@ -2,19 +2,11 @@ FROM node:18-slim
2
 
3
  WORKDIR /app
4
 
5
- # Create package.json with required dependencies
6
- RUN echo '{"name":"bot-manager","version":"1.0.0","type":"commonjs","dependencies":{"mineflayer":"^4.20.1","express":"^4.18.2","socket.io":"^4.7.2","minecraft-data":"^3.35.0","vec3":"^0.1.7"}}' > package.json
7
-
8
- # Install dependencies
9
  RUN npm install
10
 
11
- # Copy Python app
12
- COPY app.py .
13
-
14
- # Install Python
15
- RUN apt-get update && apt-get install -y python3 python3-pip && rm -rf /var/lib/apt/lists/*
16
- RUN pip3 install --break-system-packages flask requests
17
 
18
  EXPOSE 7860
19
 
20
- CMD ["python3", "app.py"]
 
2
 
3
  WORKDIR /app
4
 
5
+ COPY package.json ./
 
 
 
6
  RUN npm install
7
 
8
+ COPY . .
 
 
 
 
 
9
 
10
  EXPOSE 7860
11
 
12
+ CMD ["node", "server.js"]