ReactLearn/docker-compose.yml
2024-11-17 13:11:04 +08:00

16 lines
362 B
YAML

version: '3.8'
services:
app:
image: node:23-alpine
container_name: learn-react
working_dir: /root/ReactLearn
volumes:
- ./app:/root/ReactLearn
ports:
- "58701:4000"
command: sh -c "apk add --no-cache yarn && yarn install && yarn build && yarn global add serve && serve -s build -l 4000"
volumes:
app:
driver: local