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:
parent
e0366905ad
commit
5ebfb043f8
@ -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
|
||||
|
6
dev/exec
6
dev/exec
@ -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="/bin/bash" \
|
||||
--workdir="/app" \
|
||||
--workdir="$APP_PATH" \
|
||||
node:18-buster-slim
|
||||
|
6
dev/npm
6
dev/npm
@ -1,10 +1,12 @@
|
||||
#!/bin/sh
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
APP_PATH="$(realpath ../)"
|
||||
|
||||
# npm
|
||||
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 "$@"
|
||||
|
@ -21,6 +21,8 @@ fi
|
||||
echo "Using app port: ${NEKO_PORT}"
|
||||
echo "Using IP address: ${NEKO_HOST}"
|
||||
|
||||
APP_PATH="$(realpath ../)"
|
||||
|
||||
# npm run serve
|
||||
docker run --rm -it \
|
||||
-p 3001:3001 \
|
||||
@ -28,7 +30,7 @@ docker run --rm -it \
|
||||
-e "NEKO_PORT=$NEKO_PORT" \
|
||||
-e "VUE_APP_LOG_COLOR=true" \
|
||||
--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 dev -- --port 3001 --host
|
||||
|
Loading…
Reference in New Issue
Block a user