From 5500e57ff3184bb66f1dbfb43c514079ca7b2da7 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 28 Jul 2018 08:45:05 +0800 Subject: [PATCH] feat: initial docker --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e81f574 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM plugins/base:amd64 + +LABEL maintainer="Bo-Yi Wu " \ + org.label-schema.name="Drone Packer" \ + org.label-schema.vendor="Bo-Yi Wu" \ + org.label-schema.schema-version="1.0" + +RUN apk add --no-cache ca-certificates \ + wget && \ + rm -rf /var/cache/apk/* + +ENV PACKER_VERSION 1.2.5 +RUN wget -q https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip -O packer.zip && \ + unzip packer.zip -d /bin && \ + rm -f packer.zip + +ADD release/linux/amd64/drone-packer /bin/ +ENTRYPOINT ["/bin/drone-packer"]