Dockerfile

This commit is contained in:
Nicolai Ort 2023-05-09 22:32:23 +02:00
parent 98f7b5ceec
commit d6c2e920b0
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
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/node:20.0.0-alpine3.17
WORKDIR /app
RUN apk add curl git jq pandoc --no-cache --update && rm -rf /var/cache/apk/*
# add the wrapper which acts as a drone plugin
COPY --from=BUILD /app/plugin.sh /app/plugin.sh
ENTRYPOINT [ "/app/plugin.sh" ]