#Arg is replaced with the desired Unity container. ARG IMAGE=unityci/base:latest FROM ${IMAGE} ARG SERIAL ARG USERNAME ARG PASSWORD RUN apt update RUN apt install -y wget chromium-browser ADD https://minio.studiowhy.net/hackmd/UnityBuilder /usr/local/bin/ RUN chmod +x /usr/local/bin/UnityBuilder COPY entrypoint.sh / RUN chmod +x /entrypoint.sh COPY scripts/. /scripts RUN bash /scripts/activate_license.sh ${SERIAL} ${USERNAME} ${PASSWORD} ENTRYPOINT ["/entrypoint.sh"]