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

View File

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