docker dev genuinely sucks so fucking bad
This commit is contained in:
@@ -35,6 +35,11 @@ RUN pnpm install --frozen-lockfile
|
||||
# Copy built application from builder
|
||||
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
|
||||
RUN apk add --no-cache netcat-openbsd
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ services:
|
||||
db:
|
||||
image: postgres
|
||||
restart: always
|
||||
# ports:
|
||||
# - 5432:5432
|
||||
ports:
|
||||
- 5432:5432
|
||||
environment:
|
||||
POSTGRES_USER: root
|
||||
POSTGRES_PASSWORD: mysecretpassword
|
||||
|
||||
Reference in New Issue
Block a user