From 831100a5aa12e39798883f9b908f2a5f8d739acc Mon Sep 17 00:00:00 2001
From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com>
Date: Thu, 22 Oct 2020 16:29:14 +0200
Subject: [PATCH] Update Dockerfile

---
 api/Dockerfile | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/api/Dockerfile b/api/Dockerfile
index 2d043a744..c25c2672c 100644
--- a/api/Dockerfile
+++ b/api/Dockerfile
@@ -1,17 +1,15 @@
 # Stage 0, based on Node.js
-FROM node:12.16
+FROM node:12.16-slim
 
 WORKDIR /app
 
 # Copy the package.json file first in order to cache the modules
-COPY ./package.json .
+COPY . .
 
 # Install npm dependencies
 RUN npm install --silent
 
-# Copy Json Server Api
-COPY /api ./api
-
+# run json-server
 RUN npm run api
 
 # expose port 3000
-- 
GitLab