diff --git a/Dockerfile b/Dockerfile index 85d0ab8..2341cf5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/compose.yaml b/compose.yaml index 644be24..1ba4f66 100644 --- a/compose.yaml +++ b/compose.yaml @@ -16,7 +16,7 @@ services: build: . restart: always ports: - - 5173:5173 + - 5173:3000 depends_on: - db environment: