2018-10-16 04:14:58 +02:00
|
|
|
FROM docker:18.06.1 as docker
|
|
|
|
FROM alpine:3.8
|
2018-02-06 23:50:52 +01:00
|
|
|
|
2018-10-16 04:14:58 +02:00
|
|
|
ENV GLIBC 2.28-r0
|
2018-02-06 23:50:52 +01:00
|
|
|
|
2018-03-23 14:08:06 +01:00
|
|
|
RUN apk update && apk add --no-cache openssl ca-certificates curl libgcc && \
|
2018-08-17 19:08:41 +02:00
|
|
|
curl -fsSL -o /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
|
2018-03-09 00:44:42 +01:00
|
|
|
curl -fsSL -o glibc-$GLIBC.apk https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$GLIBC/glibc-$GLIBC.apk && \
|
|
|
|
apk add --no-cache glibc-$GLIBC.apk && \
|
2018-02-12 20:54:08 +01:00
|
|
|
ln -s /lib/libz.so.1 /usr/glibc-compat/lib/ && \
|
2018-02-06 23:50:52 +01:00
|
|
|
ln -s /lib/libc.musl-x86_64.so.1 /usr/glibc-compat/lib && \
|
2018-03-23 14:08:06 +01:00
|
|
|
ln -s /usr/lib/libgcc_s.so.1 /usr/glibc-compat/lib && \
|
2018-10-05 20:01:35 +02:00
|
|
|
rm /etc/apk/keys/sgerrand.rsa.pub glibc-$GLIBC.apk && \
|
2018-02-08 22:59:27 +01:00
|
|
|
apk del curl
|
|
|
|
|
2018-10-05 20:01:35 +02:00
|
|
|
COPY --from=docker /usr/local/bin/docker /usr/local/bin/docker
|
2016-08-19 08:04:46 +02:00
|
|
|
COPY dist/docker-compose-Linux-x86_64 /usr/local/bin/docker-compose
|
2015-07-26 01:47:36 +02:00
|
|
|
|
2016-08-19 08:04:46 +02:00
|
|
|
ENTRYPOINT ["docker-compose"]
|