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