Skip to content

Commit

Permalink
fix: bun cache
Browse files Browse the repository at this point in the history
  • Loading branch information
blimmer committed Oct 15, 2024
1 parent 3d7e3f5 commit a9e0a4e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/aws-cdk-lib/aws-lambda-nodejs/lib/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,9 @@ RUN npm config --global set update-notifier false
# create non root user and change allow execute command for non root user
RUN /sbin/useradd -u 1000 user && chmod 711 /

# Ensure all users can write to bun cache
RUN mkdir /tmp/bun-cache && \
chmod -R 777 /tmp/bun-cache && \
echo -e "[install.cache]\ndir = \"/tmp/bun-cache\"" >> /home/user/.bunfig.toml

CMD [ "esbuild" ]

0 comments on commit a9e0a4e

Please sign in to comment.