Some checks failed
Deploy / deploy (push) Has been cancelled
- Add Docker Compose for OpenFusion (FusionFall), MapleStory 2, and Minecraft FTB Infinity Evolved game servers - Add MapleStory 2 multi-service compose (MySQL, World, Login, Web, Game) - Add OpenFusion Dockerfile and configuration files - Fix CMS Dockerfile, web Dockerfile, and documentary components - Add root layout, globals.css, not-found page, and text formatting utils - Update .gitignore to exclude large game server repos and data Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
709 B
Docker
28 lines
709 B
Docker
FROM node:20-alpine AS base
|
|
|
|
WORKDIR /app
|
|
COPY package.json package-lock.json* turbo.json ./
|
|
COPY apps/web/package.json ./apps/web/
|
|
COPY packages/shared/package.json ./packages/shared/
|
|
|
|
RUN npm ci
|
|
|
|
COPY packages/shared/ ./packages/shared/
|
|
COPY apps/web/ ./apps/web/
|
|
|
|
WORKDIR /app/apps/web
|
|
RUN npm run build
|
|
|
|
FROM node:20-alpine AS production
|
|
WORKDIR /app
|
|
COPY --from=base /app/package.json ./
|
|
COPY --from=base /app/node_modules ./node_modules
|
|
COPY --from=base /app/packages ./packages
|
|
COPY --from=base /app/apps/web/.next ./apps/web/.next
|
|
COPY --from=base /app/apps/web/package.json ./apps/web/
|
|
COPY --from=base /app/apps/web/next.config.ts ./apps/web/
|
|
|
|
WORKDIR /app/apps/web
|
|
EXPOSE 3000
|
|
CMD ["npm", "start"]
|