Fixing docker build

This commit is contained in:
Grzegorz Leoniec 2019-02-16 14:08:53 +01:00
parent f88276fff5
commit dfceb51f23
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377
4 changed files with 2 additions and 6 deletions

View File

@ -1,6 +1,6 @@
.vscode/
styleguide/node_modules/
styleguide/
node_modules/
npm-debug.log

1
.gitignore vendored
View File

@ -30,6 +30,7 @@ build/Release
# Dependency directories
node_modules/
styleguide/
# TypeScript v1 declaration files
typings/

View File

@ -19,9 +19,6 @@ COPY . .
FROM base as build-and-test
RUN cp .env.template .env
RUN yarn install --production=false --frozen-lockfile --non-interactive
RUN cd styleguide && yarn install --production=false --frozen-lockfile --non-interactive \
&& cd .. \
&& yarn run styleguide:build
RUN yarn run build
FROM base as production

View File

@ -8,9 +8,7 @@ services:
volumes:
- .:/nitro-web
- node_modules:/nitro-web/node_modules
- node_modules_styleguide:/nitro-web/styleguide/node_modules
command: yarn run dev
volumes:
node_modules:
node_modules_styleguide: