1 Commits

Author SHA1 Message Date
b5e58510b6 add .dockerignore file
Ignore node_modules in build to prevent issue with COPY or bind mounts
when dependencies already exist on the host's filesystem

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-06-05 10:19:14 +02:00
2 changed files with 3 additions and 1 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
node_modules
Dockerfile

View File

@ -53,7 +53,7 @@ function TodoListCard() {
<React.Fragment>
<AddItemForm onNewItem={onNewItem} />
{items.length === 0 && (
<p className="text-center">You have no todo items yet! Add one above!</p>
<p className="text-center">No items yet! Add one above!</p>
)}
{items.map(item => (
<ItemDisplay