feat: fxi nala issue
This commit is contained in:
+23
@@ -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"]
|
||||
Reference in New Issue
Block a user