-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0540957
commit 76a9fa4
Showing
5 changed files
with
91 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
lib/workload/stateless/postgres_manager/deploy/construct/layer/node_module.Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This image will generate the node_modules needed for lambda and let | ||
# the layer reference the output from this image | ||
|
||
FROM public.ecr.aws/docker/library/node:20-alpine | ||
|
||
WORKDIR /home/node/app | ||
|
||
COPY package.json package.json | ||
COPY yarn.lock yarn.lock | ||
RUN yarn install --immutable | ||
|
||
# making nodejs folder where as guided in the AWS lambda layer docs | ||
RUN mkdir -p output/nodejs | ||
|
||
# copy node_modules to that folder | ||
RUN cp -r node_modules output/nodejs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters