Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/Dockerfile.script
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ RUN npm run build
FROM node:22 AS runtime
WORKDIR /app

ARG AWS_S3_BUCKET_NAME
ENV S3_BUCKET_NAME=${AWS_S3_BUCKET_NAME}

COPY --from=build /app/dist ./dist
COPY package*.json ./
RUN apt-get update && \
Expand All @@ -21,11 +24,8 @@ RUN apt-get update && \
RUN npm install aws-lambda-ric
RUN npm ci --only=production
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
ENV S3_BUCKET_NAME=${AWS_S3_BUCKET_NAME}
RUN npx playwright install chromium --with-deps && \
npx playwright install-deps chromium

ENV S3_BUCKET_NAME=${AWS_S3_BUCKET_NAME}

ENTRYPOINT ["/usr/local/bin/npx", "aws-lambda-ric"]
CMD ["dist/lambda-handler.handler"]