Minecraft-bridge/Dockerfile

17 lines
333 B
Docker

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
COPY src/ ./src/
COPY main.py ./
# Buffer Python's stdout for debugging during runtime
ENV PYTHONUNBUFFERED=1
CMD ["python", "main.py"]