From 052384ed0229fef3b3855a975f98a96852333d7c Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Thu, 16 Jan 2020 00:58:04 +0100 Subject: [PATCH] cache build and remove mounted volume --- Dockerfile | 3 ++- docker-compose.prod.yml | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5437a12..b6dcc0b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,9 @@ COPY package.json . COPY yarn.lock . RUN yarn -COPY . ./ +VOLUME .next +COPY . ./ RUN yarn run build CMD [ "yarn", "run", "start" ] \ No newline at end of file diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 06e0b12..cd880da 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -10,8 +10,6 @@ services: build: . ports: - 80 - volumes: - - ./.next:/app/.next networks: - traefik labels: