Skip to content

Commit

Permalink
remove bun user #8
Browse files Browse the repository at this point in the history
  • Loading branch information
C4illin committed May 29, 2024
1 parent fe65c7a commit b134b19
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ COPY --from=install /temp/prod/node_modules node_modules
# COPY --from=prerelease /app/package.json .
COPY . .

# create folder data and set owner to bun
RUN mkdir -p /app/data && chown bun:bun /app/data
# create folder data
RUN mkdir -p /app/data && chmod 755 /app/data

# run the app
USER bun
EXPOSE 3000/tcp
ENTRYPOINT [ "bun", "run", "./src/index.tsx" ]

0 comments on commit b134b19

Please sign in to comment.