Minecraft-bridge/Dockerfile

19 lines
391 B
Docker
Raw Normal View History

2021-07-31 13:28:26 +00:00
FROM openjdk:slim
# Install Python
RUN apt-get update && apt-get install -y python3 python3-pip
2021-07-31 13:28:26 +00:00
WORKDIR /usr/src/app
# Prepare Minecraft - Matrix bridge
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
2021-07-31 13:28:26 +00:00
2023-10-01 14:41:00 +00:00
COPY src/ ./src/
COPY main.py ./
2021-07-31 13:28:26 +00:00
# Buffer Python's stdout for debugging during runtime
ENV PYTHONUNBUFFERED=1
CMD ["python3", "main.py"]