Skip to content

Instantly share code, notes, and snippets.

@ptagr
Created September 28, 2017 01:39
Show Gist options
  • Save ptagr/22f784fec2a317b52e2c764844626efa to your computer and use it in GitHub Desktop.
Save ptagr/22f784fec2a317b52e2c764844626efa to your computer and use it in GitHub Desktop.
Drone Dockerfile
FROM drone/drone:0.7.3
ADD rootfs.tar.xz /
# install Docker on Debian 9
# https://docs.docker.com/engine/installation/linux/docker-ce/debian/
RUN apt-get update
RUN apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
RUN apt-key fingerprint 0EBFCD88
RUN add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
RUN apt-get update
RUN apt-get install -y docker-ce
ENV DOCKER_API_VERSION=1.26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment