Skip to content

Commit

Permalink
Fix file structure in Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Feb 6, 2024
1 parent 578a5ec commit 8d146ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ RUN yarn install
RUN mkdir --parents /test
ADD test/ test/

ADD src/index.js .
# Tests expect to find index.js in src/
ADD src/index.js src/index.js

RUN npm test

# This zip file is what will be deployed to the Lambda function.
# Add any necessary files to it.
RUN zip --quiet --recurse-paths /.prxci/build.zip .
RUN zip --quiet --junk-paths /.prxci/build.zip src/index.js package.json

0 comments on commit 8d146ca

Please sign in to comment.