Skip to content
  • This project
    • Loading...
  • Sign in

brainfood / astro-wt

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • astro-wt
  • bin
  • run
  • Adam Heath's avatar
    Add some simple instructions. · 2faeafaa
    2faeafaa
    Adam Heath committed 2024-05-31 15:13:59 -0500
run 356 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/sh

set -e

TOP_DIR="$(cd "$(dirname "$0")/.."; pwd -P)"

ti_arg=""
if [ -t 0 ]; then
	ti_arg="-ti"
fi
docker run --rm $ti_arg \
	-e UID_REMAP=$(id -u) -e GID_REMAP=$(id -g) \
	-v "$TOP_DIR/container-entrypoint.sh:/container-entrypoint.sh" --entrypoint /container-entrypoint.sh \
	-w /srv/app \
	-v "$TOP_DIR:/srv/app" \
	$DOCKER_ARGS \
	node "$@"