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: