1 Answer
- Newest
- Most votes
- Most comments
0
So the dockerfile suggested by the aws documentation I followed has the line
COPY package.json index.ts ./
I would expect that the ./
part of this would cause every file in the project directory to be copied over to the container.
Apparently not. The problem was fixed by manually adding the file from which index.ts
was importing to that line like so:
COPY package.json index.ts schema.ts ./
Although this fixes the problem, I'm still not sure how to cause all the files in the project directory (excepting of course .gitignore) to get copied over to the container before the build step without having to manually write their names into the COPY
line as above. If anyone knows, please tell me.
answered 4 months ago
Relevant content
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 3 months ago