Skip to content

Commit

Permalink
🐞 fix (Miscellaneous): Quick fix – Dockerfile
Browse files Browse the repository at this point in the history
branch: main
  • Loading branch information
Tade Strehk committed Nov 2, 2024
1 parent 9db72fc commit 8101b26
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ ENV PUBLIC_SHA=$SHA

# the runtime dependencies
COPY --from=builder /app/node_modules ./node_modules/
# Change ownership to the bun user
RUN chown -R bun:bun /app/node_modules /app/build /app/tasksOut /app/prisma

# the sveltekit output
COPY --from=builder /app/build .
Expand All @@ -50,10 +48,11 @@ COPY --from=builder /app/tasksOut .
# the prisma schema and migrations
COPY --from=builder /app/prisma ./prisma/


# Make a folder called /app/ephemeralData
RUN mkdir /app/ephemeralData
# Change ownership to the bun user
RUN chown -R bun:bun /app/ephemeralData
RUN chown -R bun:bun /app/node_modules /app/build /app/tasksOut /app/prisma /app/ephemeralData

ENV NODE_ENV=production
USER bun
Expand Down

0 comments on commit 8101b26

Please sign in to comment.