- Replace serial() with int().autoincrement() for MariaDB compatibility - Expose DB port 3306 in docker-compose for local dev tooling - Remove drizzle/ COPY from Dockerfile (using push, not migrations) - Fix StatsCounter props mismatch on home page Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
18 lines
373 B
Docker
18 lines
373 B
Docker
FROM node:22-alpine AS builder
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm ci
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM node:22-alpine
|
|
WORKDIR /app
|
|
COPY --from=builder /app/build ./build
|
|
COPY --from=builder /app/node_modules ./node_modules
|
|
COPY --from=builder /app/package.json ./
|
|
COPY --from=builder /app/scripts ./scripts
|
|
|
|
ENV NODE_ENV=production
|
|
EXPOSE 3000
|
|
CMD ["node", "build"]
|