From c9337417ae2b659261f6f2cc09f7fd34616ec8cd Mon Sep 17 00:00:00 2001 From: Adolfo Delorenzo Date: Tue, 7 Sep 2021 17:11:20 -0600 Subject: [PATCH] Dockerfile --- app/Dockerfile | 7 +++++++ app/src/static/index.html | 3 ++- app/src/static/js/app.js | 6 +++--- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 app/Dockerfile diff --git a/app/Dockerfile b/app/Dockerfile new file mode 100644 index 0000000..004d895 --- /dev/null +++ b/app/Dockerfile @@ -0,0 +1,7 @@ +# syntax=docker/dockerfile:1 +FROM node:12-alpine +RUN apk add --no-cache python g++ make +WORKDIR /app +COPY . . +RUN yarn install --production +CMD ["node", "src/index.js"] diff --git a/app/src/static/index.html b/app/src/static/index.html index 3f6fb5b..605a932 100644 --- a/app/src/static/index.html +++ b/app/src/static/index.html @@ -8,9 +8,10 @@ - Todo App + Lista de compras +

Lista de Compras

diff --git a/app/src/static/js/app.js b/app/src/static/js/app.js index 4ec962c..7c8b54b 100644 --- a/app/src/static/js/app.js +++ b/app/src/static/js/app.js @@ -53,7 +53,7 @@ function TodoListCard() { {items.length === 0 && ( -

No items yet! Add one above!

+

Adicionar um item

)} {items.map(item => ( setNewItem(e.target.value)} type="text" - placeholder="New Item" + placeholder="Novo produto" aria-describedby="basic-addon1" /> @@ -106,7 +106,7 @@ function AddItemForm({ onNewItem }) { disabled={!newItem.length} className={submitting ? 'disabled' : ''} > - {submitting ? 'Adding...' : 'Add Item'} + {submitting ? 'Adding...' : 'OK'}