docker dev genuinely sucks so fucking bad

This commit is contained in:
2026-02-17 19:09:38 +13:00
parent 04cd11b606
commit cd133d72ec
2 changed files with 7 additions and 2 deletions

View File

@@ -35,6 +35,11 @@ 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
# Copy drizzle config and schema for migrations
COPY drizzle.config.ts ./
COPY tsconfig.json ./
COPY src/lib/server/db ./src/lib/server/db
# Install netcat for database readiness check # Install netcat for database readiness check
RUN apk add --no-cache netcat-openbsd RUN apk add --no-cache netcat-openbsd

View File

@@ -2,8 +2,8 @@ services:
db: db:
image: postgres image: postgres
restart: always restart: always
# ports: ports:
# - 5432:5432 - 5432:5432
environment: environment:
POSTGRES_USER: root POSTGRES_USER: root
POSTGRES_PASSWORD: mysecretpassword POSTGRES_PASSWORD: mysecretpassword