- Added DOKUMENTASI-FILTER-PER-SITE.md (site isolation docs) - Fixed start-with-env.js to force-load .env.production - Fixed MONGODB_URI hostname from mongodb-netify to mongodb.prod.proit.id - Updated .gitignore to exclude sensitive scripts and credential files - Minor UI and labeling improvements
21 lines
589 B
Docker
21 lines
589 B
Docker
FROM oven/bun:1-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Install dependencies first (layer caching)
|
|
# bun install is compatible with npm package.json / package-lock.json
|
|
COPY package*.json ./
|
|
RUN bun install --production
|
|
|
|
# Copy application source
|
|
COPY . .
|
|
|
|
# Expose proxy REST API port
|
|
EXPOSE 4000
|
|
|
|
# Health check
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=15s --retries=3 \
|
|
CMD bun -e "require('http').get('http://localhost:4000/health', r => r.statusCode === 200 ? process.exit(0) : process.exit(1)).on('error', () => process.exit(1))"
|
|
|
|
CMD ["bun", "run", "index.js"]
|