1 個回答
- 最新
- 最多得票
- 最多評論
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.
已回答 5 個月前
相關內容
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 4 年前