Skip to content
Open
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
21 changes: 10 additions & 11 deletions parallelized-aws-lambda/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
FROM docker.io/revideo/aws-lambda-base-image:latest

COPY ./revideo-project/ ./

RUN npm install

RUN node node_modules/puppeteer/install.mjs
ENV ROLLUP_CACHE=/tmp/rollup_cache \
FFMPEG_PATH=/var/task/node_modules/@ffmpeg-installer/linux-x64/ffmpeg \
HOME=/tmp \
DONT_WRITE_TO_META_FILES=true

RUN npx tsc && cp dist/lambda.js ./
COPY ./revideo-project/package*.json ./

ENV ROLLUP_CACHE=/tmp/rollup_cache
RUN npm install

ENV FFMPEG_PATH=/var/task/node_modules/@ffmpeg-installer/linux-x64/ffmpeg
RUN node node_modules/puppeteer/install.mjs

ENV HOME=/tmp
COPY ./revideo-project/ ./

ENV DONT_WRITE_TO_META_FILES=true
RUN npx tsc && cp -r dist/* ./

CMD ["lambda.handler"]
CMD ["lambda.handler"]