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.

41 lines
1.4 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
  9. RUN apt-get -y update \
  10. && apt-get -y --no-install-recommends install \
  11. procps \
  12. bzip2 \
  13. ca-certificates \
  14. curl \
  15. tar \
  16. unzip \
  17. wget \
  18. && rm -Rf /var/lib/apt/lists/*
  19. RUN cd /tmp \
  20. && curl -LSo renpy-${RENPY_VERSION}-sdk.tar.bz2 https://www.renpy.org/dl/${RENPY_VERSION}/renpy-${RENPY_VERSION}-sdk.tar.bz2 \
  21. && curl -LSo renpy-${RENPY_VERSION}-rapt.zip https://www.renpy.org/dl/${RENPY_VERSION}/renpy-${RENPY_VERSION}-rapt.zip \
  22. && curl -LSo renpy-${RENPY_VERSION}-renios.zip https://www.renpy.org/dl/${RENPY_VERSION}/renpy-${RENPY_VERSION}-renios.zip \
  23. && curl -LSo renpy-${RENPY_VERSION}-web.zip https://www.renpy.org/dl/${RENPY_VERSION}/renpy-${RENPY_VERSION}-web.zip
  24. run cd /tmp \
  25. && tar -xf renpy-${RENPY_VERSION}-sdk.tar.bz2 \
  26. && rm renpy-${RENPY_VERSION}-sdk.tar.bz2 \
  27. && mv renpy-${RENPY_VERSION}-sdk ${RENPY_DIR} \
  28. && unzip renpy-${RENPY_VERSION}-rapt.zip -d ${RENPY_DIR} \
  29. && rm renpy-${RENPY_VERSION}-rapt.zip \
  30. && unzip renpy-${RENPY_VERSION}-renios.zip -d ${RENPY_DIR} \
  31. && rm renpy-${RENPY_VERSION}-renios.zip \
  32. && unzip renpy-${RENPY_VERSION}-web.zip -d ${RENPY_DIR} \
  33. && rm renpy-${RENPY_VERSION}-web.zip
  34. WORKDIR $RENPY_DIR