docker: fix
This commit is contained in:
parent
1a1fb1f18d
commit
c6f8027ee7
1 changed files with 2 additions and 8 deletions
|
@ -4,13 +4,7 @@ services:
|
||||||
app:
|
app:
|
||||||
image: node:23-alpine
|
image: node:23-alpine
|
||||||
container_name: learn-react
|
container_name: learn-react
|
||||||
working_dir: /root/ReactLearn
|
working_dir: /root/
|
||||||
volumes:
|
|
||||||
- ./app:/root/ReactLearn
|
|
||||||
ports:
|
ports:
|
||||||
- "58701:4000"
|
- "58701:4000"
|
||||||
command: sh -c "apk add --no-cache yarn && yarn install && yarn build && yarn global add serve && serve -s build -l 4000"
|
command: sh -c "apk add --no-cache yarn git && git clone https://git.kagurach.uk/kagura/ReactLearn.git && cd ReactLearn && yarn install && yarn build && yarn global add serve && serve -s build -l 4000"
|
||||||
|
|
||||||
volumes:
|
|
||||||
app:
|
|
||||||
driver: local
|
|
||||||
|
|
Loading…
Reference in a new issue