feat: fxi nala issue

This commit is contained in:
Jesse Egbosionu
2024-11-25 09:58:58 +01:00
parent 973d96c805
commit 53ea2721d6
4 changed files with 33 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
FROM node:22-slim AS base
ENV NEXT_TELEMETRY_DISABLED=1
WORKDIR /app
# Dependencies
FROM base AS dependencies
COPY package.json package-lock.json ./
RUN npm ci
# Build
FROM base AS build
COPY --from=dependencies /app/node_modules ./node_modules
COPY . .
RUN npm run build
# Run
FROM base AS run
ENV NODE_ENV=production
RUN mkdir .next
COPY --from=build /app/public ./public
COPY --from=build /app/.next/standalone ./
COPY --from=build /app/.next/static ./.next/static
CMD ["node", "server.js"]