summaryrefslogtreecommitdiff
path: root/Dockerfile.run
diff options
context:
space:
mode:
authorMarcos Lilljedahl <marcosnils@gmail.com>2016-08-19 03:04:46 -0300
committerJoffrey F <joffrey@docker.com>2017-03-03 15:17:10 -0800
commit44653f28126b731d9bc7390a0eeae66b7bc19a78 (patch)
tree6f957e7b341dfd6068768ffbbb709d7079a5a66b /Dockerfile.run
parent31b2d9176b96b4bd7e4b89cfd32f563a9318e384 (diff)
Improve Dockerfile.run
This dockerfile generates a more lightweight image that works with the current official dynamically generated binaries Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com> Change image script to use new Dockerfile.run image without building compose Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com> Apply suggested fixes Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
Diffstat (limited to 'Dockerfile.run')
-rw-r--r--Dockerfile.run20
1 files changed, 10 insertions, 10 deletions
diff --git a/Dockerfile.run b/Dockerfile.run
index de46e35e..5d246e9e 100644
--- a/Dockerfile.run
+++ b/Dockerfile.run
@@ -1,14 +1,14 @@
+FROM alpine:3.4
-FROM alpine:3.4
-ARG version
-RUN apk -U add \
- python \
- py-pip
+ENV GLIBC 2.23-r3
-COPY requirements.txt /code/requirements.txt
-RUN pip install -r /code/requirements.txt
+RUN apk update && apk add --no-cache openssl ca-certificates && \
+ wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://raw.githubusercontent.com/sgerrand/alpine-pkg-glibc/master/sgerrand.rsa.pub && \
+ wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$GLIBC/glibc-$GLIBC.apk && \
+ apk add --no-cache glibc-$GLIBC.apk && rm glibc-$GLIBC.apk && \
+ ln -s /lib/libz.so.1 /usr/glibc-compat/lib/ && \
+ ln -s /lib/libc.musl-x86_64.so.1 /usr/glibc-compat/lib
-COPY dist/docker_compose-${version}-py2.py3-none-any.whl /code/
-RUN pip install --no-deps /code/docker_compose-${version}-py2.py3-none-any.whl
+COPY dist/docker-compose-Linux-x86_64 /usr/local/bin/docker-compose
-ENTRYPOINT ["/usr/bin/docker-compose"]
+ENTRYPOINT ["docker-compose"]