-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (44 loc) · 1.41 KB
/
docker-compose.yml
File metadata and controls
45 lines (44 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
services:
dev-server:
init: true
build:
context: .
dockerfile: Dockerfile
args:
- NPMRC_FONTAWESOME_PACKAGE_TOKEN=${NPMRC_FONTAWESOME_PACKAGE_TOKEN}
command: sh -c "mkdir -p /tmp/node_tmp && rm -rf /tmp/node_tmp/* && npm run dev"
ports:
- "6007:6007"
environment:
- NPMRC_FONTAWESOME_PACKAGE_TOKEN=${NPMRC_FONTAWESOME_PACKAGE_TOKEN}
- NODE_ENV=development
- TMPDIR=/tmp/node_tmp
volumes:
# Mount the project root to /app for HMR
- .:/app
# Anonymous volumes to protect container node_modules from being overwritten by host
- /app/node_modules
- /app/packages/react-components/node_modules
- /app/packages/web-components/node_modules
- /app/packages/storybook/node_modules
- /app/packages/tailwind-theme/node_modules
stdin_open: true
tty: true
build:
init: true
build:
context: .
dockerfile: Dockerfile
args:
- NPMRC_FONTAWESOME_PACKAGE_TOKEN=${NPMRC_FONTAWESOME_PACKAGE_TOKEN}
command: npm run build
environment:
- NPMRC_FONTAWESOME_PACKAGE_TOKEN=${NPMRC_FONTAWESOME_PACKAGE_TOKEN}
- NODE_ENV=production
volumes:
- .:/app
- /app/node_modules
- /app/packages/react-components/node_modules
- /app/packages/web-components/node_modules
- /app/packages/storybook/node_modules
- /app/packages/tailwind-theme/node_modules