28 lines
879 B
Docker
28 lines
879 B
Docker
#Arg is replaced with the desired Unity container.
|
|
ARG IMAGE=ubuntu:latest
|
|
FROM ${IMAGE}
|
|
|
|
ARG DOCKER_VERSION=20.10.23
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install -y software-properties-common apt-transport-https wget chromium-browser
|
|
RUN add-apt-repository -y ppa:savoury1/chromium
|
|
RUN apt-get update && \
|
|
apt-get install -y chromium-browser && \
|
|
apt-get install -y curl
|
|
|
|
# Install Docker CLI (static binary - much cleaner)
|
|
RUN apt-get update && apt-get install -y curl
|
|
RUN curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz | tar -xzf - --strip=1 -C /usr/local/bin docker/docker
|
|
|
|
#ADD https://minio.studiowhy.net/hackmd/UnityBuilder /usr/local/bin/
|
|
COPY UnityBuilder /usr/local/bin/
|
|
RUN chmod +x /usr/local/bin/UnityBuilder
|
|
|
|
COPY entrypoint.sh /
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
COPY scripts/. /scripts
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|