Dockerfile
This commit is contained in:
parent
3488e6f244
commit
3fddebb659
15
.gitignore
vendored
Normal file
15
.gitignore
vendored
Normal file
@ -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
|
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -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" ]
|
Loading…
x
Reference in New Issue
Block a user