forked from jonaskello/docker-and-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
14 lines (12 loc) · 837 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM docker:18.06.1
ARG compose_version=1.21.2
# Install docker-compose (extra complicated since the base image uses alpine as base)
RUN apk update && apk add --no-cache \
curl openssl ca-certificates \
&& curl -L https://github.com/docker/compose/releases/download/${compose_version}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& 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/2.23-r3/glibc-2.23-r3.apk \
&& apk add --no-cache glibc-2.23-r3.apk && rm glibc-2.23-r3.apk \
&& ln -s /lib/libz.so.1 /usr/glibc-compat/lib/ \
&& ln -s /lib/libc.musl-x86_64.so.1 /usr/glibc-compat/lib