Minecraft-bridge/Dockerfile

21 lines
416 B
Docker
Raw Normal View History

2021-07-31 13:28:26 +00:00
FROM openjdk:slim
COPY --from=python:3 / /
WORKDIR /usr/src/app
# Prepare Minecraft - Matrix bridge
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
2023-10-01 14:41:00 +00:00
# # Prepare MC server
# COPY server.jar ./
# RUN java -jar server.jar --nogui
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
2023-10-01 14:41:00 +00:00
CMD ["python", "main.py"]