build as root
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nicolai Ort 2023-05-10 19:09:52 +02:00
parent 96f1b0965d
commit c131769114
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
2 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,7 @@ name: build:latest
steps:
- name: docker release
image: registry.odit.services/library/drone-kaniko
user: 0
settings:
username:
from_secret: docker_username

View File

@ -7,9 +7,11 @@ RUN dos2unix plugin.sh
FROM registry.odit.services/hub/library/node:20.0.0-alpine3.17
WORKDIR /app
ENV HOME /root
ENV USER root
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
RUN chmod +x /app/plugin.sh
ENTRYPOINT [ "/app/plugin.sh" ]