FROM python:3-slim LABEL maintainer="Drew Short" ARG RENPY_VERSION ENV SDL_AUDIODRIVER="dummy" \ SDL_VIDEODRIVER="dummy" \ RENPY_DIR="/renpy" \ RENPY_VERSION=${RENPY_VERSION:-"7.3.5"} RUN mkdir -p /tmp /project VOLUME /project RUN apt-get -y update \ && apt-get -y --no-install-recommends install \ procps \ bzip2 \ ca-certificates \ curl \ tar \ unzip \ wget \ && rm -Rf /var/lib/apt/lists/* RUN cd /tmp \ && curl -LSo renpy-${RENPY_VERSION}-sdk.tar.bz2 https://www.renpy.org/dl/${RENPY_VERSION}/renpy-${RENPY_VERSION}-sdk.tar.bz2 \ && curl -LSo renpy-${RENPY_VERSION}-rapt.zip https://www.renpy.org/dl/${RENPY_VERSION}/renpy-${RENPY_VERSION}-rapt.zip \ && curl -LSo renpy-${RENPY_VERSION}-renios.zip https://www.renpy.org/dl/${RENPY_VERSION}/renpy-${RENPY_VERSION}-renios.zip \ && curl -LSo renpy-${RENPY_VERSION}-web.zip https://www.renpy.org/dl/${RENPY_VERSION}/renpy-${RENPY_VERSION}-web.zip run cd /tmp \ && tar -xf renpy-${RENPY_VERSION}-sdk.tar.bz2 \ && rm renpy-${RENPY_VERSION}-sdk.tar.bz2 \ && mv renpy-${RENPY_VERSION}-sdk ${RENPY_DIR} \ && unzip renpy-${RENPY_VERSION}-rapt.zip -d ${RENPY_DIR} \ && rm renpy-${RENPY_VERSION}-rapt.zip \ && unzip renpy-${RENPY_VERSION}-renios.zip -d ${RENPY_DIR} \ && rm renpy-${RENPY_VERSION}-renios.zip \ && unzip renpy-${RENPY_VERSION}-web.zip -d ${RENPY_DIR} \ && rm renpy-${RENPY_VERSION}-web.zip WORKDIR $RENPY_DIR