From 69d539312bb8fb5992b209392ecc0f14a5fdb815 Mon Sep 17 00:00:00 2001 From: Kagura Date: Sun, 17 Nov 2024 14:24:15 +0800 Subject: [PATCH] docker update --- docker-compose.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8630efd..2892f79 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,9 @@ services: app: image: node:23-alpine container_name: learn-react - working_dir: /root/ + working_dir: /app/ + volumes: + - .:/app ports: - "58701: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" + command: sh -c "apk add --no-cache yarn && yarn install && yarn build && yarn global add serve && serve -s build -l 4000"