forked from hyperledger-labs/minifabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (18 loc) · 967 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
FROM alpine:3.13
LABEL maintainer="[email protected]"
ENV PYTHONUNBUFFERED=1
RUN apk add --update py-pip bash docker-cli openssl xxd dos2unix py3-cryptography && \
if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi && \
mkdir -p /usr/lib/python3.8/site-packages/Crypto/Random/Fortuna \
/usr/lib/python3.8/site-packages/ansible/plugins
COPY . /home
COPY plugins /usr/lib/python3.8/site-packages/ansible/plugins
COPY pypatch /usr/lib/python3.8/site-packages/Crypto/Random/Fortuna
RUN rm -rf /var/cache/apk/* && rm -rf /tmp/* && apk update && \
pip install requests google-auth kubernetes ansible docker && \
ansible-galaxy collection install cloud.common kubernetes.core && \
dos2unix -q /home/main.sh /home/scripts/mainfuncs.sh \
/usr/lib/python3.8/site-packages/ansible/plugins/callback/minifab.py && \
apk del dos2unix && rm -rf /var/cache/apk/* && rm -rf /tmp/*
ENV PATH $PATH:/home/bin
WORKDIR /home