Container crashed with 'Can't find meta/_journal.json file' because Drizzle ORM migration files were never generated. Generated migrations for all 10 schema tables and updated Dockerfile to copy drizzle/ to /app/drizzle/ where the migrator expects them. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
33 lines
745 B
Docker
33 lines
745 B
Docker
FROM node:22-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Install pnpm
|
|
RUN npm install -g pnpm
|
|
|
|
# Copy workspace files
|
|
COPY pnpm-workspace.yaml .
|
|
COPY pnpm-lock.yaml .
|
|
COPY package.json .
|
|
|
|
# Copy vendor packages (workspace dependencies)
|
|
COPY vendor/discord.js-selfbot-v13 ./vendor/discord.js-selfbot-v13
|
|
|
|
# Copy service
|
|
COPY services/discord-gateway ./services/discord-gateway
|
|
|
|
# Copy Drizzle migrations (relative path used by migrator)
|
|
COPY services/discord-gateway/drizzle ./drizzle
|
|
|
|
# Install dependencies
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
# Build discord gateway
|
|
RUN pnpm --filter './services/discord-gateway' run build
|
|
|
|
# Create recordings directory
|
|
RUN mkdir -p /app/recordings
|
|
|
|
# Start discord gateway
|
|
CMD ["node", "services/discord-gateway/dist/index.js"]
|