File tree Expand file tree Collapse file tree 4 files changed +33
-0
lines changed
Expand file tree Collapse file tree 4 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ # Use the base image
2+ FROM kooldev/node:22
3+
4+ RUN apk add --no-cache nginx
5+
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ set -e
3+
4+ # Run as current user
5+ CURRENT_USER=${ASUSER:- ${UID:- 0} }
6+
7+ if [ ! -z " $CURRENT_USER " ] && [ " $CURRENT_USER " != " 0" ]; then
8+ usermod -u $CURRENT_USER kool
9+ fi
10+
11+ # Run entrypoint if provided
12+ if [ ! -z " $ENTRYPOINT " ] && [ -f " $ENTRYPOINT " ]; then
13+ bash $ENTRYPOINT
14+ fi
15+
16+ if [ ! -z " $CURRENT_USER " ] && [ " $CURRENT_USER " != " 0" ]; then
17+ exec su-exec kool " $@ "
18+ else
19+ exec " $@ "
20+ fi
Original file line number Diff line number Diff line change 1+ scripts-prepend-node-path=true
2+ package-import-method=copy
3+ shamefully-hoist=true
4+ store-dir=/home/kool/.pnpm-store
Original file line number Diff line number Diff line change 1+ scripts-prepend-node-path=true
2+ package-import-method=copy
3+ shamefully-hoist=true
4+ store-dir=/root/.pnpm-store
You can’t perform that action at this time.
0 commit comments