chore: update configuration and dependencies
Docker images / frontend-image (push) Failing after 32s
Docker images / backend-image (push) Failing after 2m56s
Docker images / notify-webhook (push) Has been skipped

- Added .ci/docker/ to .gitignore to exclude Docker CI files.
- Set Next.js output configuration to "standalone" for optimized deployment.
- Updated package-lock.json to include new optional dependency for Windows SWC binaries.
This commit is contained in:
Denozordec
2026-05-12 12:11:43 +07:00
parent dfbaa859ad
commit c36994c36b
7 changed files with 246 additions and 1 deletions
+34
View File
@@ -0,0 +1,34 @@
# syntax=docker/dockerfile:1
FROM node:22-bookworm-slim AS deps
WORKDIR /app
COPY package.json package-lock.json ./
COPY packages/contracts/package.json packages/contracts/
RUN npm ci --workspace=@mmapp/contracts --include-workspace-root
FROM deps AS build
COPY packages/contracts packages/contracts
COPY next.config.ts tsconfig.json postcss.config.mjs components.json ./
COPY app app
COPY components components
COPY lib lib
COPY shared shared
COPY entities entities
COPY public public
COPY hooks hooks
ENV NEXT_TELEMETRY_DISABLED=1
RUN npm run build -w @mmapp/contracts \
&& npm run build \
&& npm prune --omit=dev
FROM node:22-bookworm-slim AS runner
WORKDIR /app
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
ENV HOSTNAME=0.0.0.0
ENV PORT=3000
COPY --from=build /app/public ./public
COPY --from=build /app/.next/standalone ./
COPY --from=build /app/.next/static ./.next/static
EXPOSE 3000
CMD ["node", "server.js"]