Files
ai-recruit-site-template/Dockerfile
Mikael Westöö 42993ced70 Fix deployment issues
- Remove healthcheck from Dockerfile (Coolify handles this)
- Make database connection non-blocking
- Add Coolify-specific docker-compose file
- Improve error handling for database connection
2026-01-23 21:34:33 +01:00

26 lines
404 B
Docker

FROM node:18-alpine
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install --production
# Copy application code
COPY server.js ./
COPY public ./public
COPY migrations ./migrations
# Create non-root user
RUN addgroup -g 1001 -S nodejs && \
adduser -S nodejs -u 1001 && \
chown -R nodejs:nodejs /app
USER nodejs
EXPOSE 3000
CMD ["node", "server.js"]