diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..c2658d7 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +node_modules/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bccc301 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM node:14.16.1-alpine3.13 +WORKDIR /app +COPY package*.json ./ +RUN npm install --no-fund +COPY . . +EXPOSE 8080 +CMD ["node", "index.js"] diff --git a/package.json b/package.json index c9a5f03..7699f68 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "api-conversao", "version": "1.0.0", - "description": "", + "description": "API DE Conversão Celcius para Fahrenheit", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1"