17 lines
345 B
Docker
17 lines
345 B
Docker
#Arg is replaced with the desired Unity container.
|
|
ARG IMAGE=unityci/base:latest
|
|
FROM ${IMAGE}
|
|
|
|
RUN useradd -ms /bin/bash unity -u 1000
|
|
|
|
COPY entrypoint.sh /
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
COPY install-dotnet.sh /
|
|
RUN bash /install-dotnet.sh
|
|
|
|
COPY UnityBuilder /usr/bin/
|
|
RUN chmod +x /usr/bin/UnityBuilder
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
USER unity |