PowerBot / Dockerfile
Tokipo's picture
Update Dockerfile
125b2d5 verified
raw
history blame
569 Bytes
FROM node:18-slim
WORKDIR /app
# Create package.json with required dependencies
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
# Install dependencies
RUN npm install
# Copy Python app
COPY app.py .
# Install Python
RUN apt-get update && apt-get install -y python3 python3-pip && rm -rf /var/lib/apt/lists/*
RUN pip3 install --break-system-packages flask requests
EXPOSE 7860
CMD ["python3", "app.py"]