Add node images
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
FROM node:25-alpine3.22
|
||||
|
||||
WORKDIR /root
|
||||
|
||||
COPY ./entrypoint.sh .
|
||||
|
||||
RUN chmod +x /root/entrypoint.sh
|
||||
|
||||
ENTRYPOINT [ "/root/entrypoint.sh" ]
|
||||
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT="$1"
|
||||
WORKDIR="$2"
|
||||
|
||||
echo "
|
||||
Setting workdir from current dir, which is $(pwd)
|
||||
"
|
||||
if [ -n "$WORKDIR" ]; then
|
||||
cd "$WORKDIR"
|
||||
fi
|
||||
|
||||
echo "
|
||||
Running node script
|
||||
"
|
||||
|
||||
node $SCRIPT >/tmp/log.txt
|
||||
Reference in New Issue
Block a user