Files
unity/unity-command/Dockerfile
2023-03-25 16:33:13 -07:00

21 lines
477 B
Docker

#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"]