Tokipo commited on
Commit
50ddab5
·
verified ·
1 Parent(s): 9c6e5f5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -14,7 +14,7 @@ RUN apt-get update && apt-get install -y \
14
  WORKDIR /app
15
 
16
  # Create package.json for Node dependencies with fixed versions
17
- RUN echo '{"name":"mineflayer-bot","version":"1.0.0","dependencies":{"mineflayer":"^4.20.0","express":"^4.18.2","axios":"^1.6.0"}}' > package.json
18
 
19
  # Install Node dependencies
20
  RUN npm install --omit=dev
@@ -22,11 +22,14 @@ RUN npm install --omit=dev
22
  # Create Python virtual environment and install packages
23
  RUN python3 -m venv /opt/venv
24
  ENV PATH="/opt/venv/bin:$PATH"
25
- RUN pip install --no-cache-dir flask flask-cors requests pandas
26
 
27
  # Copy the main application
28
  COPY app.py .
29
 
 
 
 
30
  # Expose port for Hugging Face Spaces
31
  EXPOSE 7860
32
 
 
14
  WORKDIR /app
15
 
16
  # Create package.json for Node dependencies with fixed versions
17
+ RUN echo '{"name":"mineflayer-bot","version":"1.0.0","dependencies":{"mineflayer":"^4.20.0"}}' > package.json
18
 
19
  # Install Node dependencies
20
  RUN npm install --omit=dev
 
22
  # Create Python virtual environment and install packages
23
  RUN python3 -m venv /opt/venv
24
  ENV PATH="/opt/venv/bin:$PATH"
25
+ RUN pip install --no-cache-dir flask flask-cors requests
26
 
27
  # Copy the main application
28
  COPY app.py .
29
 
30
+ # Create tmp directory with proper permissions
31
+ RUN mkdir -p /tmp && chmod 777 /tmp
32
+
33
  # Expose port for Hugging Face Spaces
34
  EXPOSE 7860
35