Files
unity/unity-command/Dockerfile
2023-03-25 21:53:41 -07:00

20 lines
517 B
Docker

#Arg is replaced with the desired Unity container.
ARG IMAGE=unityci/base:latest
FROM ${IMAGE}
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 --mount=type=secret,id=SERIAL \
--mount=type=secret,id=USERNAME \
--mount=type=secret,id=PASSWORD \
bash /scripts/activate_license.sh
ENTRYPOINT ["/entrypoint.sh"]