diff --git a/002_source/cms/.gitignore b/002_source/cms/.gitignore index da9d21f..475404d 100644 --- a/002_source/cms/.gitignore +++ b/002_source/cms/.gitignore @@ -3,6 +3,8 @@ **/*log **/*tmp +.pnpm-store + .env .env.production diff --git a/002_source/cms/Dockerfile b/002_source/cms/Dockerfile index b6aebb7..b9a5065 100644 --- a/002_source/cms/Dockerfile +++ b/002_source/cms/Dockerfile @@ -1,5 +1,14 @@ -FROM 192.168.10.61:5000/nvm_ubuntu:latest +# Use official Node 18 base image +FROM node:22-slim +# Install pnpm globally +RUN npm install -g pnpm + +# Set working directory WORKDIR /app -RUN nvm install 22 +# Copy your application code (optional, comment out if not needed) +# COPY . . + +# Default command (optional) +CMD ["node"] diff --git a/002_source/cms/scripts/docker/entrypoint.sh b/002_source/cms/scripts/docker/entrypoint.sh index 22a481d..8d8a30d 100755 --- a/002_source/cms/scripts/docker/entrypoint.sh +++ b/002_source/cms/scripts/docker/entrypoint.sh @@ -3,12 +3,17 @@ # set -x # nvm use 20 -nvm install 18 -nvm alias default 18 -nvm use default -node -v +# pnpm run build -sleep infinity +pnpm i + +pnpm run build + +while true; do + pnpm run start + + sleep 3 +done # pnpm i -D