Rise Michael
Rise Michael
NNovu
Created by Rise Michael on 9/14/2023 in #💬│support
Self Hosting on Kubernetes with runAsNonRoot: true option
@Zac Clifton Or is there something against this change that I am not aware of?
11 replies
NNovu
Created by Rise Michael on 10/11/2023 in #💬│support
env variables description
@Pawan Jain Thanks a lot. Exactly what I was looking for.
3 replies
NNovu
Created by Rise Michael on 9/14/2023 in #💬│support
Self Hosting on Kubernetes with runAsNonRoot: true option
11 replies
NNovu
Created by Rise Michael on 9/14/2023 in #💬│support
Self Hosting on Kubernetes with runAsNonRoot: true option
@Zac Clifton Thanks for the response! But wouldn't it be enough to set the permissions for the node user and switch to the node user at the end of the Dockerfile for the web container? I have tried this locally and it works completely fine.
# start production stage
FROM node:16-alpine

WORKDIR /app

RUN apk add --no-cache bash
RUN npm install -g [email protected] http-server --loglevel notice

COPY --from=builder /usr/src/app/apps/web/env.sh /app/env.sh
COPY --from=builder /usr/src/app/apps/web/.env /app/.env

COPY --from=builder /usr/src/app/apps/web/build /app/build
COPY --from=builder /usr/src/app/apps/web/public /app/public
COPY --from=builder /usr/src/app/apps/web/package.json /app/package.json

RUN chown -R 1000:1000 .
USER 1000

CMD [ "pnpm", "start:static:build" ]
# end production stage
# start production stage
FROM node:16-alpine

WORKDIR /app

RUN apk add --no-cache bash
RUN npm install -g [email protected] http-server --loglevel notice

COPY --from=builder /usr/src/app/apps/web/env.sh /app/env.sh
COPY --from=builder /usr/src/app/apps/web/.env /app/.env

COPY --from=builder /usr/src/app/apps/web/build /app/build
COPY --from=builder /usr/src/app/apps/web/public /app/public
COPY --from=builder /usr/src/app/apps/web/package.json /app/package.json

RUN chown -R 1000:1000 .
USER 1000

CMD [ "pnpm", "start:static:build" ]
# end production stage
11 replies
NNovu
Created by Rise Michael on 9/14/2023 in #💬│support
Self Hosting on Kubernetes with runAsNonRoot: true option
Hi @Osama Sayed Yes, I have created my own Dockerfiles, but also submitted an issue today in the novu github repo. Would provide a PR if the issue gets accepted.
11 replies