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年前