mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
I give up now after numerous attempts to reduce the docker image size. The only thing left is that I've put the NODE_ENV=.. configuration in the docker-compose.X.yml files, I think that's slightly cleaner
19 lines
364 B
YAML
19 lines
364 B
YAML
version: '3.7'
|
|
|
|
services:
|
|
webapp:
|
|
environment:
|
|
- NODE_ENV=development
|
|
build:
|
|
context: .
|
|
target: build-and-test
|
|
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:
|