-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from PermanentOrg/per-9673_add_record_thumbna…
…il_handler Add lambda handler for attaching thumbnails to records
- Loading branch information
Showing
23 changed files
with
3,118 additions
and
1,371 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM public.ecr.aws/lambda/nodejs:18 as builder | ||
WORKDIR /usr/local/apps/stela/ | ||
|
||
COPY package.json ./ | ||
COPY tsconfig.build.json ./ | ||
COPY tsconfig.json ./ | ||
COPY jest.config.js ./ | ||
COPY packages ./packages | ||
|
||
RUN npm install -g npm@8.19.3 | ||
RUN npm install | ||
RUN npm install -ws | ||
RUN npm run build -ws | ||
|
||
|
||
FROM public.ecr.aws/lambda/nodejs:18 as final | ||
WORKDIR ${LAMBDA_TASK_ROOT} | ||
|
||
COPY --from=builder /usr/local/apps/stela/packages/record_thumbnail_attacher/dist ./packages/record_thumbnail_attacher/dist | ||
COPY --from=builder /usr/local/apps/stela/packages/record_thumbnail_attacher/package.json ./packages/record_thumbnail_attacher/package.json | ||
COPY --from=builder /usr/local/apps/stela/packages/logger/dist ./packages/logger/dist | ||
COPY --from=builder /usr/local/apps/stela/packages/logger/package.json ./packages/logger/package.json | ||
COPY --from=builder /usr/local/apps/stela/package.json ./package.json | ||
COPY --from=builder /usr/local/apps/stela/package-lock.json ./package-lock.json | ||
|
||
RUN npm install -g npm@8.19.3 | ||
RUN npm install --workspace @stela/record_thumbnail_attacher | ||
|
||
CMD ["packages/record_thumbnail_attacher/dist/index.handler"] |
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
Oops, something went wrong.