mirror of
https://github.com/docker/getting-started-app.git
synced 2025-01-02 19:01:13 -05:00
created docker file
This commit is contained in:
parent
f2d13b8483
commit
4950e83125
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
FROM node:18-alpine
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . .
|
||||||
|
RUN yarn install --production
|
||||||
|
CMD ["node", "src/index.js"]
|
||||||
|
EXPOSE 3000
|
@ -53,7 +53,7 @@ function TodoListCard() {
|
|||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<AddItemForm onNewItem={onNewItem} />
|
<AddItemForm onNewItem={onNewItem} />
|
||||||
{items.length === 0 && (
|
{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 => (
|
{items.map(item => (
|
||||||
<ItemDisplay
|
<ItemDisplay
|
||||||
|
Loading…
Reference in New Issue
Block a user