mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
dev use app path inside docker as well.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user