forked from hyperledger-labs/minifabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerfileHub
33 lines (26 loc) · 1.26 KB
/
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
28
29
30
31
32
33
# Dockerfile for minindy
#
# @see https://github.com/alanveloso/minindy
#
FROM alpine/git:v2.30.1 AS BUILD
RUN cd /tmp && git init minindy && cd minindy && \
git remote add origin https://github.com/alanveloso/minindy && \
git pull --depth=1 origin main && mv plugins /tmp && \
mv pypatch /tmp && \
rm -f .dockerignore .gitignore Dockerfile DockerfileHub
FROM alpine:3.13
LABEL maintainer="[email protected]"
ENV PYTHONUNBUFFERED=1
RUN apk add --no-cache 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 --from=build /tmp/minindy /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
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 && \
apk del dos2unix && rm -rf /var/cache/apk/* && rm -rf /tmp/*
ENV PATH $PATH:/home/bin
WORKDIR /home