Slightly smarter docker front setup

This commit is contained in:
Eliot Berriot 2018-04-16 21:00:56 +02:00
parent 7c9412f63a
commit 168b2f03d4
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
3 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,7 @@ services:
- "${WEBPACK_DEVSERVER_PORT_BINDING-8080:}${WEBPACK_DEVSERVER_PORT-8080}"
volumes:
- './front:/app'
- '/app/node_modules'
- './po:/po'
networks:
- federation

1
front/.dockerignore Normal file
View File

@ -0,0 +1 @@
node_modules

View File

@ -4,7 +4,7 @@ EXPOSE 8080
WORKDIR /app/
ADD package.json .
RUN yarn install
VOLUME ["/app/node_modules"]
COPY . .
CMD ["npm", "run", "dev"]