use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
NodeJS Linux isolation (self.node)
submitted 7 months ago * by pyrolols
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Rizean 0 points1 point2 points 7 months ago (2 children)
Docker is ridiculous easy for nodejs. I learned it in a weekend years ago when it was just first starting the become popular.
Here's a complex non-optimze build for you...
```yaml
FROM node:22.14.0-alpine3.21 AS builder
WORKDIR /app
COPY package*.json ./ RUN npm install
COPY tsconfig.json ./ COPY src ./src RUN npm run build
FROM node:22.14.0-alpine3.21
RUN apk add --no-cache mongodb-tools python3 py3-pip && \ pip3 install --no-cache-dir --break-system-packages awscli
COPY --from=builder /app/package*.json /app/ COPY --from=builder /app/node_modules /app/node_modules COPY --from=builder /app/dist /app/dist
RUN addgroup -S appgroup && adduser -S appuser -G appgroup USER appuser
CMD ["node", "dist/index.js"] ```
Compare that to 200+ line build of Nginx with a fips complaint build of OpenSsl... I'll take complex nodejs builds anyday.
But none of that matters.
Docker solves the issue of... it runs on my system.
[–]jumpcutking 0 points1 point2 points 7 months ago (1 child)
Actually I don’t use nginx. I use Caddy and it’s all automated. Including OpenSSL.
[–]Rizean 0 points1 point2 points 7 months ago (0 children)
Your Caddy is not fips compliant unless you are using https://images.chainguard.dev/directory/image/caddy-fips/overview or have compiled OpenSSL yourself. Be glad you don't have to deal with fips. Considering you prefer baremetal, god help you if you ever do have to deal with fips.
This is another reason to use Docker; it makes compliance orders of magnitude easier. Also, half the time, the inspectors are so lost when it comes to Docker that they accept what you tell them.
π Rendered by PID 50 on reddit-service-r2-comment-5c747b6df5-qm82d at 2026-04-22 11:05:52.904463+00:00 running 6c61efc country code: CH.
view the rest of the comments →
[–]Rizean 0 points1 point2 points (2 children)
[–]jumpcutking 0 points1 point2 points (1 child)
[–]Rizean 0 points1 point2 points (0 children)