mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-23 03:18:09 +08:00
feat(ql3): establish 3.0 incubation baseline
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
FROM node:24-alpine
|
||||
|
||||
RUN apk add --no-cache openrc \
|
||||
&& addgroup -g 10001 -S ql3service \
|
||||
&& adduser -u 10001 -S -D -H -G ql3service -s /sbin/nologin ql3service \
|
||||
&& mkdir -p /run/openrc
|
||||
|
||||
ENTRYPOINT ["node", "-e", "const fs=require('node:fs');fs.mkdirSync('/run/openrc',{recursive:true});fs.writeFileSync('/run/openrc/softlevel','default\\n');setInterval(()=>{},2147483647)"]
|
||||
@@ -0,0 +1,13 @@
|
||||
FROM node:24-bookworm-slim
|
||||
|
||||
RUN apt-get update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends systemd \
|
||||
&& groupadd --gid 10001 ql3service \
|
||||
&& useradd --uid 10001 --gid 10001 --no-create-home --shell /usr/sbin/nologin ql3service \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& systemctl mask systemd-remount-fs.service getty@.service console-getty.service
|
||||
|
||||
STOPSIGNAL SIGRTMIN+3
|
||||
ENTRYPOINT ["/lib/systemd/systemd"]
|
||||
CMD []
|
||||
Reference in New Issue
Block a user