fix: edge hardening, rootless containers, fail-closed frontend mode
This commit is contained in:
parent
d903d0951f
commit
e82ce391f6
15 changed files with 260 additions and 31 deletions
|
|
@ -3,11 +3,17 @@
|
|||
# file. DevDeps are included: `npm run dev` must work with zero steps.
|
||||
FROM node:22-slim
|
||||
|
||||
# gosu drops privileges before serving (node user, uid 1000 — same as the
|
||||
# vscode editor user, so the bind-mounted node_modules stays writable).
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends gosu \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /srv/kirche-einfach/frontend
|
||||
COPY package.json package-lock.json entrypoint.sh ./
|
||||
RUN npm ci
|
||||
COPY . ./
|
||||
RUN chmod +x entrypoint.sh
|
||||
RUN chmod +x entrypoint.sh && chown -R node:node /srv/kirche-einfach/frontend
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue