forked from hyperledger-labs/minifabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerfileHub
27 lines (21 loc) · 961 Bytes
/
DockerfileHub
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
# Dockerfile for hyperledger minifabric
#
# @see https://github.com/litong01/minifabric
#
FROM alpine/git AS BUILD
RUN cd /tmp && git init minifabric && cd minifabric && \
git remote add origin https://github.com/litong01/minifabric && \
git pull --depth=1 origin master && mv plugins /tmp && \
mv pypatch /tmp && \
rm -f .dockerignore .gitignore Dockerfile DockerfileHub
FROM alpine:latest
LABEL maintainer="[email protected]"
ENV PYTHONUNBUFFERED=1
RUN apk add --no-cache bash ansible docker-cli openssl xxd && \
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 --from=build /tmp/minifabric /home
COPY --from=build /tmp/plugins /usr/lib/python3.8/site-packages/ansible/plugins
COPY --from=build /tmp/pypatch /usr/lib/python3.8/site-packages/Crypto/Random/Fortuna
ENV PATH $PATH:/home/bin
WORKDIR /home