This commit is contained in:
TDLaouer 2025-07-13 22:48:43 +02:00
parent 8e1a1bf5af
commit d23ff54de5

View File

@ -8,23 +8,18 @@ WORKDIR /app
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 the entire project
COPY --link . . COPY --link . .
# Build the project
RUN npm run build RUN npm run build
FROM base FROM base
COPY --from=build /src/.output /src/.output COPY --from=build /src/.output /src/.output
# Change the port and host
ENV PORT=3001 ENV PORT=3001
EXPOSE 3001 EXPOSE 3001