Harden render server and import boundaries

This commit is contained in:
th committed 2026-06-05 20:05:32 +02:00
1 parent 5cc373cf6b
commit fae55e3f13
11 files changed
+2400 -54

No files matched your search

+7 -2
View File
@@ -10,11 +10,16 @@ RUN apt-get update && apt-get install -y \
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
ENV PORT=6000
ENV HOST=127.0.0.1
WORKDIR /app
COPY package.json ./
RUN npm install --omit=dev
COPY package.json package-lock.json ./
RUN npm ci --omit=dev
COPY . .
RUN groupadd -r ruwio && useradd -r -g ruwio -d /app -s /usr/sbin/nologin ruwio \
&& chown -R ruwio:ruwio /app
USER ruwio
EXPOSE 6000
CMD ["node", "server.js"]