created docker file

This commit is contained in:
Franklin Guevara 2024-06-10 21:53:08 -06:00
parent f2d13b8483
commit 4950e83125
2 changed files with 7 additions and 1 deletions

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM node:18-alpine
WORKDIR /app
COPY . .
RUN yarn install --production
CMD ["node", "src/index.js"]
EXPOSE 3000

View File

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