Compare commits

..

No commits in common. "d23ff54de5471a24d7bace0a265bd816a385a44a" and "7678967831bc6f143e88c6229295060cc10ad126" have entirely different histories.

View File

@ -1,25 +1,24 @@
ARG NODE_VERSION=22.16.0
FROM node:${NODE_VERSION}-slim as base
FROM base as build
FROM node:22-alpine AS build
WORKDIR /app
RUN corepack enable
RUN npm install -g pm2
# Copy package.json and your lockfile, here we add pnpm-lock.yaml for illustration
COPY package*.json ./
# Install dependencies
RUN npm i
COPY --link . .
# Copy the entire project
COPY . .
# Build the project
RUN npm run build
FROM base
COPY --from=build /src/.output /src/.output
# Change the port and host
ENV PORT=3001
EXPOSE 3001