Files
Mana-Loop/Dockerfile
T
Refactoring Agent 930d5b9e29
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 40s
Fix incorrect imports: hasSpecial and SPECIAL_EFFECTS should be imported from special-effects.ts, not upgrade-effects.ts
- Fixed src/components/game/GameContext/Provider.tsx
- Fixed src/components/game/GameContext/types.ts

The upgrade-effects.ts imports these from special-effects.ts but doesn't re-export them.
2026-05-06 10:32:38 +02:00

22 lines
653 B
Docker
Executable File

FROM node:20-alpine AS base
WORKDIR /app
RUN apk add --no-cache libc6-compat openssl
RUN npm install -g bun
# Install dependencies
COPY package.json bun.lock* bun.lockb* ./
COPY prisma ./prisma/
RUN bun install --frozen-lockfile
# Copy source
COPY . .
# Generate Prisma client
RUN bunx prisma generate --schema=./prisma/schema.prisma
# Build the application
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
RUN bun run build
EXPOSE 3000
ENV PORT=3000
ENV HOSTNAME=0.0.0.0
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:3000 || exit 1
CMD ["bun", "run", "start"]