-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
30 lines (23 loc) · 1.1 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
FROM alpine:3.5
MAINTAINER Alexei Ledenev <[email protected]>
# default Docker API version: override to work with older docker server
ENV DOCKER_API_VERSION 1.26
# default docker client version
ENV DOCKER_VERSION 1.13.1
# add some packages
RUN apk --no-cache add curl bash openssl openssh-client python
# install docker client
RUN curl -o "/tmp/docker-${DOCKER_VERSION}.tgz" -LS "https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz" && \
curl -o "/tmp/docker-${DOCKER_VERSION}.tgz.sha256" -LS "https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz.sha256" && \
cd /tmp && sha256sum -c "docker-${DOCKER_VERSION}.tgz.sha256" && \
tar -xvzf "/tmp/docker-${DOCKER_VERSION}.tgz" -C /tmp/ && \
chmod u+x /tmp/docker/docker && mv /tmp/docker/docker /usr/bin/ && \
rm -rf /tmp/*
# install rdocker script
COPY rdocker.sh /usr/local/bin/rdocker
RUN chmod +x /usr/local/bin/rdocker
CMD ["rdocker"]
# labels for https://microbadger.com/ service
ARG GH_SHA
LABEL org.label-schema.vcs-ref=$GH_SHA \
org.label-schema.vcs-url="https://github.com/codefresh-io/remote-docker"