forked from hyperledger-labs/minifabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
20 lines (15 loc) · 753 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM alpine:latest
LABEL maintainer="[email protected]"
ENV PYTHONUNBUFFERED=1
RUN apk add --no-cache bash ansible docker-cli openssl xxd dos2unix && \
if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi && \
mkdir -p /usr/lib/python3.8/site-packages/Crypto/Random/Fortuna
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 && \
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