DEV Community

Cover image for Build an Express App Using Bun and Deploy It To Render With Docker

Build an Express App Using Bun and Deploy It To Render With Docker

Andrew Shearer on October 25, 2023

In this post, we will scaffold a simple Express project using Bun, and then deploy it to Render using Docker. You’ll also get to see how much easie...
Collapse
 
drex72 profile image
Drex72

Hey, Love the post
i have an error when setting up docker
error: EACCES reading "/usr/src/app/node_modules/proxy-from-env/index.js"

Collapse
 
arthurbm profile image
Arthur Brito Medeiros

Same here! Have you found out the problem?

Collapse
 
licahow395 profile image
Jo • Edited

This is a permissions issue where files are not owned by user bun.

It can be fixed by either:
1) set all the files to be owned by user bun. Place following just above line with USER bun

RUN chown -R bun:bun .
Enter fullscreen mode Exit fullscreen mode

2) or by removing this line from docker file. USER bun This will cause bun to run as root inside the container.