2017-04-07 05:34:16 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for building docker-compose-arm
|
|
|
|
#
|
|
|
|
|
2019-07-07 11:58:31 +02:00
|
|
|
FROM arm32v7/debian:stretch
|
2017-04-07 05:34:16 +02:00
|
|
|
MAINTAINER EasyPi Software Foundation
|
|
|
|
|
2019-07-07 11:18:56 +02:00
|
|
|
ENV DOCKER_COMPOSE_VERSION 1.24.1
|
2017-04-07 05:34:16 +02:00
|
|
|
ENV PYINSTALLER_VERSION 3.2.1
|
|
|
|
|
|
|
|
RUN set -xe \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install -y build-essential \
|
|
|
|
curl \
|
2019-07-07 11:18:56 +02:00
|
|
|
libffi-dev \
|
|
|
|
libssl-dev \
|
2017-05-07 14:13:57 +02:00
|
|
|
python-dev \
|
2017-04-07 05:34:16 +02:00
|
|
|
zlib1g-dev \
|
|
|
|
&& curl https://bootstrap.pypa.io/get-pip.py | python \
|
|
|
|
&& pip install docker-compose==$DOCKER_COMPOSE_VERSION \
|
|
|
|
pyinstaller==$PYINSTALLER_VERSION \
|
2017-05-07 14:13:57 +02:00
|
|
|
&& cd /usr/local/lib/python2.7/dist-packages \
|
2017-04-07 05:34:16 +02:00
|
|
|
&& pip download --no-binary :all: --no-deps pyinstaller==$PYINSTALLER_VERSION \
|
|
|
|
&& tar xjf PyInstaller-$PYINSTALLER_VERSION.tar.bz2 \
|
|
|
|
&& cd PyInstaller-$PYINSTALLER_VERSION/bootloader \
|
|
|
|
&& ./waf all --no-lsb \
|
|
|
|
&& cp -r ../PyInstaller/bootloader/Linux-32bit-arm/ ../../PyInstaller/bootloader/ \
|
2017-05-07 14:13:57 +02:00
|
|
|
&& cd /usr/local/lib/python2.7/dist-packages \
|
2017-04-07 05:34:16 +02:00
|
|
|
&& mkdir -p bin \
|
|
|
|
&& curl -sSL https://github.com/docker/compose/raw/$DOCKER_COMPOSE_VERSION/docker-compose.spec > docker-compose.spec \
|
|
|
|
&& curl -sSL https://github.com/docker/compose/raw/$DOCKER_COMPOSE_VERSION/bin/docker-compose > bin/docker-compose \
|
|
|
|
&& pyinstaller docker-compose.spec \
|
|
|
|
&& cp docker-compose/dist/docker-compose /usr/local/bin/ \
|
|
|
|
&& docker-compose version
|
|
|
|
|
|
|
|
ENTRYPOINT ["docker-compose"]
|
|
|
|
CMD ["help"]
|