diff --git a/package.json b/package.json index c7f465f6..f23223e8 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Toy example of microservice", "main": "", "scripts": { - "start": "run-p start-frontend start-controller start-shipping start-inventory", + "start": "run-p start-frontend start-controller start-inventory", "start-controller": "nodemon services/controller/index.js", "start-shipping": "nodemon services/shipping/index.js", "start-inventory": "nodemon services/inventory/index.js", diff --git a/shipping.Dockerfile b/shipping.Dockerfile new file mode 100644 index 00000000..8eb4141a --- /dev/null +++ b/shipping.Dockerfile @@ -0,0 +1,14 @@ +# Imagem base derivada do Node +FROM node + +# Diretório de trabalho +WORKDIR /app + +# Comando para copiar os arquivos para a pasta /app da imagem +COPY . /app + +# Comando para instalar as dependências +RUN npm install + +# Comando para inicializar (executar) a aplicação +CMD ["node", "/app/services/shipping/index.js"] \ No newline at end of file