add drizzle for db lol

This commit is contained in:
2026-02-17 18:57:26 +13:00
parent d1849774d9
commit 04cd11b606
2 changed files with 6 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
# Install pnpm
RUN npm install -g pnpm
# Install dependencies
# Install all dependencies (including dev)
RUN pnpm install --frozen-lockfile
# Copy source code
@@ -29,13 +29,13 @@ COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
# Install pnpm
RUN npm install -g pnpm
# Install only production dependencies
RUN pnpm install --frozen-lockfile --prod
# Install all dependencies (including dev for drizzle-kit)
RUN pnpm install --frozen-lockfile
# Copy built application from builder
COPY --from=builder /app/build ./build
# Install netcat for health checks
# Install netcat for database readiness check
RUN apk add --no-cache netcat-openbsd
# Copy entrypoint script
@@ -43,7 +43,7 @@ COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
# Expose port (SvelteKit Node adapter default)
EXPOSE 3000
EXPOSE 5173
# Start the application
ENTRYPOINT ["/app/entrypoint.sh"]

View File

@@ -16,7 +16,7 @@ services:
build: .
restart: always
ports:
- 5173:5173
- 5173:3000
depends_on:
- db
environment: