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