forked from sourcekeeper_42/sourcekeeper_42-contract-lab
citizen: add docker-compose runtime scaffold
This commit is contained in:
parent
51409b4036
commit
46c4733364
8
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: node:20-alpine
|
||||||
|
working_dir: /workspace
|
||||||
|
volumes:
|
||||||
|
- ./:/workspace
|
||||||
|
command: >-
|
||||||
|
sh -lc "if [ -f package.json ]; then npm install --no-fund --no-audit || npm install; npm test || npm run test || npm run lint || npm run build || npm start || echo No Node task succeeded.; else echo package.json not found.; fi"
|
||||||
Loading…
Reference in New Issue
Block a user