-
Notifications
You must be signed in to change notification settings - Fork 16
/
Dockerfile
15 lines (13 loc) · 871 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM docker:19.03.12
ARG compose_version=1.26.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 libgcc \
&& 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://alpine-pkgs.sgerrand.com/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 \
&& ln -s /usr/lib/libgcc_s.so.1 /usr/glibc-compat/lib