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 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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user