Docker image build for renpy release automation https://www.renpy.org/latest.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.5 KiB

  1. FROM python:3-slim
  2. LABEL maintainer="Drew Short"
  3. ARG RENPY_VERSION
  4. ENV SDL_AUDIODRIVER="dummy" \
  5. SDL_VIDEODRIVER="dummy" \
  6. RENPY_DIR="/renpy" \
  7. RENPY_VERSION=${RENPY_VERSION:-"7.3.5"}
  8. RUN mkdir -p /tmp /project
  9. VOLUME /project
  10. RUN apt-get -y update \
  11. && apt-get -y --no-install-recommends install \
  12. procps \
  13. bzip2 \
  14. ca-certificates \
  15. curl \
  16. tar \
  17. unzip \
  18. wget \
  19. && rm -Rf /var/lib/apt/lists/*
  20. RUN cd /tmp \
  21. && curl -LSo renpy-${RENPY_VERSION}-sdk.tar.bz2 https://www.renpy.org/dl/${RENPY_VERSION}/renpy-${RENPY_VERSION}-sdk.tar.bz2 \
  22. && curl -LSo renpy-${RENPY_VERSION}-rapt.zip https://www.renpy.org/dl/${RENPY_VERSION}/renpy-${RENPY_VERSION}-rapt.zip \
  23. && curl -LSo renpy-${RENPY_VERSION}-renios.zip https://www.renpy.org/dl/${RENPY_VERSION}/renpy-${RENPY_VERSION}-renios.zip \
  24. && curl -LSo renpy-${RENPY_VERSION}-web.zip https://www.renpy.org/dl/${RENPY_VERSION}/renpy-${RENPY_VERSION}-web.zip
  25. run cd /tmp \
  26. && tar -xf renpy-${RENPY_VERSION}-sdk.tar.bz2 \
  27. && rm renpy-${RENPY_VERSION}-sdk.tar.bz2 \
  28. && mv renpy-${RENPY_VERSION}-sdk ${RENPY_DIR} \
  29. && unzip renpy-${RENPY_VERSION}-rapt.zip -d ${RENPY_DIR} \
  30. && rm renpy-${RENPY_VERSION}-rapt.zip \
  31. && unzip renpy-${RENPY_VERSION}-renios.zip -d ${RENPY_DIR} \
  32. && rm renpy-${RENPY_VERSION}-renios.zip \
  33. && unzip renpy-${RENPY_VERSION}-web.zip -d ${RENPY_DIR} \
  34. && rm renpy-${RENPY_VERSION}-web.zip
  35. WORKDIR $RENPY_DIR