This commit is contained in:
Ishaan Dey
2024-05-25 20:13:31 -07:00
parent 08a898a82a
commit 74bb83f3ed
8 changed files with 87 additions and 103 deletions

View File

@ -16,13 +16,13 @@ COPY . .
RUN npm run build
# Security: Create non-root user and assign ownership
RUN useradd -m sboxuser
RUN mkdir projects && chown -R sboxuser:sboxuser projects
USER sboxuser
RUN useradd -m appuser
RUN mkdir projects && chown -R appuser:appuser projects
USER appuser
# user namespace mapping
# todo user namespace mapping
EXPOSE 8000
EXPOSE 5173
EXPOSE 3000
EXPOSE 4000
CMD [ "node", "dist/index.js" ]