using su-exec from apk

This commit is contained in:
jash
2018-10-10 21:36:32 +02:00
committed by kexkey
parent 0af6c5fd1f
commit 5f68550103

View File

@@ -1,23 +1,6 @@
FROM alpine as builder
RUN set -x\
&& apk add --no-cache\
gcc\
make\
git\
musl-dev
RUN git clone https://github.com/ncopa/su-exec.git /su-exec
WORKDIR /su-exec
RUN make
RUN strip su-exec
FROM node:alpine
COPY --from=builder /su-exec/su-exec /sbin/
RUN apk add --update bash && rm -rf /var/cache/apk/*
RUN apk add --update bash su-exec && rm -rf /var/cache/apk/*
RUN mkdir -p /app
RUN mkdir /.config
RUN chmod a+rwx /.config
@@ -30,3 +13,4 @@ RUN npm link
WORKDIR /data
ENTRYPOINT ["/sbin/su-exec"]
RUN find / -perm +6000 -type f -exec chmod a-s {} \; || true