Fix permission denied on volume
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
be49659141
commit
e848f27694
|
@ -44,15 +44,16 @@ ENTRYPOINT ["/usr/sbin/happydns"]
|
|||
|
||||
ENV HAPPYDNS_LEVELDB_PATH=/data/happydns.db
|
||||
|
||||
VOLUME /data
|
||||
|
||||
RUN apk add --no-cache \
|
||||
curl \
|
||||
jq \
|
||||
&& \
|
||||
adduser --system --no-create-home --uid 15353 happydns && \
|
||||
chown happydns /data
|
||||
mkdir /data && chown happydns /data
|
||||
USER happydns
|
||||
WORKDIR /data
|
||||
|
||||
VOLUME /data
|
||||
|
||||
COPY --from=gobuild /go/src/git.happydns.org/happydns/happydns /usr/sbin/happydns
|
||||
COPY hadmin.sh /usr/bin/hadmin
|
||||
|
|
|
@ -6,15 +6,16 @@ ENTRYPOINT ["/usr/sbin/happydns"]
|
|||
|
||||
ENV HAPPYDNS_LEVELDB_PATH=/data/happydns.db
|
||||
|
||||
VOLUME /data
|
||||
|
||||
RUN apk add --no-cache \
|
||||
curl \
|
||||
jq \
|
||||
&& \
|
||||
adduser --system --no-create-home --uid 15353 happydns && \
|
||||
chown happydns /data
|
||||
mkdir /data && chown happydns /data
|
||||
USER happydns
|
||||
WORKDIR /data
|
||||
|
||||
VOLUME /data
|
||||
|
||||
COPY happydns /usr/sbin/happydns
|
||||
COPY hadmin.sh /usr/bin/hadmin
|
||||
|
|
Loading…
Reference in New Issue