-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
32 lines (23 loc) · 988 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM chocolatey/choco:latest-linux as choco
FROM arillso/ansible:2.14.1 as production
USER root
RUN apk --update --no-cache add \
mono \
mono-dev \
libgdiplus \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing \
&& apk --no-cache add ca-certificates bash icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib wget \
&& rm -rf /var/cache/apk/* \
&& update-ca-certificates
RUN wget --progress=dot:giga https://dot.net/v1/dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& ./dotnet-install.sh -c 6.0 --install-dir /usr/share/dotnet
COPY --from=choco usr/local/bin/choco.exe /usr/local/bin
COPY --from=choco /opt/chocolatey /opt/chocolatey
COPY . /opt/chocomilk
RUN /usr/bin/ansible-galaxy \
collection install -r \
/opt/chocomilk/collections/requirements.yml \
-p /usr/share/ansible/collections
# Command to run when starting the container
CMD ["/usr/bin/ansible-playbook", "/opt/chocomilk/chocomilk.yml", "-vvvv"]