mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
22 lines
468 B
Docker
22 lines
468 B
Docker
FROM node:22-alpine
|
|
|
|
# Enable corepack and activate pnpm
|
|
RUN corepack enable && corepack prepare pnpm@11.3.0 --activate
|
|
|
|
# pm2 manages the process; sequelize-cli runs migrations on startup
|
|
RUN npm install -g pm2 sequelize-cli
|
|
|
|
WORKDIR /app
|
|
|
|
# Install production dependencies only
|
|
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
COPY . .
|
|
|
|
RUN chmod +x docker-entrypoint.sh
|
|
|
|
EXPOSE 3024
|
|
|
|
ENTRYPOINT ["./docker-entrypoint.sh"]
|