Files
Paul Nothaft 7ce4f7efdc
continuous-integration/drone/push Build is passing
feat: Add Focus Tools (ADHD-friendly productivity features)
- Add Focus Tools dashboard with collapsible help section
- Implement Quick Wins page for tasks under 15 minutes
- Add Single Task Focus mode to reduce overwhelm
- Create Body Doubling page for virtual co-working
- Add visual timer, break reminders, and energy tracking
- Implement hyperfocus protection alerts
- Add ADHD settings panel with customizable options
- Include full English and German translations
- Fix larger touch targets CSS to not break button layouts
- Add Playwright tests for Focus Tools features
2026-01-15 21:20:04 +01:00

53 lines
1.5 KiB
Docker

# Base stage with Node.js
FROM node:20-alpine AS base
WORKDIR /app
# Dependencies stage
FROM base AS dependencies
COPY package.json package-lock.json ./
RUN npm ci --omit=dev && \
cp -R node_modules /tmp/prod_node_modules && \
npm ci
# Build stage
FROM base AS build
COPY --from=dependencies /app/node_modules ./node_modules
COPY . .
# Build the client application (frontend only)
RUN npm run build
# Production stage
FROM base AS production
# Install ALL dependencies (including tsx for running TypeScript in production)
COPY --from=dependencies /app/node_modules ./node_modules
# Copy server source files (TypeScript)
COPY --from=build /app/server ./server
COPY --from=build /app/shared ./shared
COPY --from=build /app/drizzle.config.ts ./
COPY --from=build /app/package.json ./
COPY --from=build /app/tsconfig.json ./
# Copy built frontend to the location static.ts expects
COPY --from=build /app/dist/public ./server/public
# Copy attached assets (logo, favicon, etc.)
COPY --from=build /app/attached_assets ./server/public/attached_assets
# Set environment variables
ENV NODE_ENV=production
ENV PORT=5000
# Expose the application port
EXPOSE 5000
# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD node -e "require('http').get('http://localhost:5000/api/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"
# Start the application using tsx to run TypeScript directly
# Run DB migrations and start the application
CMD ["sh", "-c", "npx drizzle-kit push && npx tsx server/index.ts"]