Dockerfiles: add dependancies for hadmin.sh
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2021-01-11 01:47:48 +01:00
parent 65aa02de15
commit b80cd775ca
2 changed files with 12 additions and 2 deletions

View File

@ -46,7 +46,12 @@ ENV HAPPYDNS_LEVELDB_PATH=/data/happydns.db
VOLUME /data
RUN adduser --system --no-create-home --uid 15353 happydns && chown happydns /data
RUN apk add --no-cache \
curl \
jq \
&& \
adduser --system --no-create-home --uid 15353 happydns && \
chown happydns /data
USER happydns
COPY --from=gobuild /go/src/git.happydns.org/happydns/happydns /usr/sbin/happydns

View File

@ -8,7 +8,12 @@ ENV HAPPYDNS_LEVELDB_PATH=/data/happydns.db
VOLUME /data
RUN adduser --system --no-create-home --uid 15353 happydns && chown happydns /data
RUN apk add --no-cache \
curl \
jq \
&& \
adduser --system --no-create-home --uid 15353 happydns && \
chown happydns /data
USER happydns
COPY happydns /usr/sbin/happydns