mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-02-04 12:04:27 +01:00
using su-exec from apk
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user