From 816145f6368ced670f66cca1bc1fd71a555a7761 Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Sun, 21 Jul 2024 20:08:27 +0200 Subject: [PATCH] fix: use proper user in bun container --- chart/dockerfiles/frontend/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chart/dockerfiles/frontend/Dockerfile b/chart/dockerfiles/frontend/Dockerfile index 624999132..b6888c2f0 100644 --- a/chart/dockerfiles/frontend/Dockerfile +++ b/chart/dockerfiles/frontend/Dockerfile @@ -1,7 +1,7 @@ FROM oven/bun:latest -USER node -WORKDIR hangar-frontend +USER bun +WORKDIR /hangar-frontend ENV TERM xterm-256color ENV HOST 0.0.0.0 @@ -9,5 +9,5 @@ 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/