cache build and remove mounted volume

This commit is contained in:
cupcakearmy 2020-01-16 00:58:04 +01:00
parent 70b70f2d09
commit 052384ed02
2 changed files with 2 additions and 3 deletions

View File

@ -6,8 +6,9 @@ COPY package.json .
COPY yarn.lock .
RUN yarn
COPY . ./
VOLUME .next
COPY . ./
RUN yarn run build
CMD [ "yarn", "run", "start" ]

View File

@ -10,8 +10,6 @@ services:
build: .
ports:
- 80
volumes:
- ./.next:/app/.next
networks:
- traefik
labels: