Skip to content

Commit

Permalink
fix: use proper user in bun container
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Jul 21, 2024
1 parent 9598b3b commit 816145f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chart/dockerfiles/frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM oven/bun:latest

USER node
WORKDIR hangar-frontend
USER bun
WORKDIR /hangar-frontend
ENV TERM xterm-256color
ENV HOST 0.0.0.0

EXPOSE 1337
ENV PORT=1337
ENTRYPOINT ["./entrypoint.sh"]

COPY --chown=node:node --chmod=744 /chart/dockerfiles/frontend/entrypoint.sh /hangar-frontend/entrypoint.sh
COPY --chown=node:node /frontend/.output/ /hangar-frontend/
COPY --chown=bun:bun --chmod=744 /chart/dockerfiles/frontend/entrypoint.sh /hangar-frontend/entrypoint.sh
COPY --chown=bun:bun /frontend/.output/ /hangar-frontend/

0 comments on commit 816145f

Please sign in to comment.