dev use app path inside docker as well.

This commit is contained in:
Miroslav Šedivý
2024-03-17 13:12:22 +01:00
parent e0366905ad
commit 5ebfb043f8
4 changed files with 16 additions and 8 deletions

View File

@ -1,10 +1,12 @@
#!/bin/sh
cd "$(dirname "$0")"
APP_PATH="$(realpath ../)"
# start component watch
docker run --rm -it \
--user "$(id -u):$(id -g)" \
--volume "${PWD}/../:/app" \
--volume "$APP_PATH:$APP_PATH" \
--entrypoint="npm" \
--workdir="/app" \
--workdir="$APP_PATH" \
node:18-buster-slim run build