Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ data/
*.db-wal
*.db-journal

# keep database schema and migrations
!src/db/schema.ts
!src/db/index.ts
!drizzle.config.ts
!src/db/migrations/

# macOS-specific files
.DS_Store
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ FROM base AS runtime

ENV NODE_ENV=production \
HOST=0.0.0.0 \
PORT=4321 \
DATABASE_URL=/app/data/portfolio.db

# Create the SQLite data directory and grant ownership to the non-root user.
RUN mkdir -p /app/data && chown node:node /app/data
PORT=4321

# Copy only the dependencies and build artifacts required at runtime.
COPY --from=production-dependencies --chown=node:node /app/node_modules ./node_modules
Expand All @@ -50,5 +46,9 @@ USER node

EXPOSE 4321

# Verify that the Astro server is responding inside the container.
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD node -e "fetch('http://127.0.0.1:4321/').then(r => { if (!r.ok) process.exit(1) }).catch(() => process.exit(1))"

# Start the Astro standalone Node.js server.
CMD ["node", "./dist/server/entry.mjs"]
15 changes: 0 additions & 15 deletions drizzle.config.ts

This file was deleted.

Loading
Loading