From 3fddebb659978c46ecce78640294771d053ab83c Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Fri, 12 May 2023 08:19:55 +0200 Subject: [PATCH] Dockerfile --- .gitignore | 15 +++++++++++++++ Dockerfile | 13 +++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..497de2c --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# kaniko base image cache files +sha256:* + +# Tar files for testing +*.tar \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9a30c57 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM registry.odit.services/hub/library/alpine:3.17 as BUILD +WORKDIR /app +RUN apk add dos2unix --no-cache --update && rm -rf /var/cache/apk/* +COPY plugin.sh ./ +RUN dos2unix plugin.sh + +FROM registry.odit.services/hub/library/alpine3.17 +RUN apk add curl --no-cache --update && rm -rf /var/cache/apk/* + +# add the wrapper which acts as a drone plugin +COPY --from=BUILD /app/plugin.sh /plugin.sh +RUN chmod +x /plugin.sh +ENTRYPOINT [ "/plugin.sh" ]