-
Notifications
You must be signed in to change notification settings - Fork 41
/
Dockerfile
35 lines (31 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM alpine:3.10
ENV DOCKER_CHANNEL=stable \
DOCKER_VERSION=19.03.2 \
DOCKER_COMPOSE_VERSION=1.24.1 \
DOCKER_SQUASH=0.2.0
# Install Docker, Docker Compose, Docker Squash
RUN apk --update --no-cache add \
bash \
curl \
device-mapper \
py-pip \
python-dev \
iptables \
util-linux \
ca-certificates \
gcc \
libc-dev \
libffi-dev \
openssl-dev \
make \
&& \
apk upgrade && \
curl -fL "https://download.docker.com/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" | tar zx && \
mv /docker/* /bin/ && chmod +x /bin/docker* && \
pip install docker-compose==${DOCKER_COMPOSE_VERSION} && \
curl -fL "https://github.com/jwilder/docker-squash/releases/download/v${DOCKER_SQUASH}/docker-squash-linux-amd64-v${DOCKER_SQUASH}.tar.gz" | tar zx && \
mv /docker-squash* /bin/ && chmod +x /bin/docker-squash* && \
rm -rf /var/cache/apk/* && \
rm -rf /root/.cache
COPY entrypoint.sh /bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]