Spaces:
Sleeping

File size: 812 Bytes
5386109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Ultra-stable Dockerfile - NO database connections
FROM node:20-alpine

# Create app directory
WORKDIR /app

# Only copy what we absolutely need
COPY stable-server.js ./

# Create minimal package.json with only Express
RUN echo '{"name":"edichat-stable","version":"1.0.0","main":"stable-server.js","dependencies":{"express":"^4.18.2"}}' > package.json

# Install only Express - no other dependencies
RUN npm install express --save --silent

# Set environment to disable all logging
ENV NODE_ENV=production
ENV PORT=7860
ENV DISABLE_LOGGING=true

# Expose port
EXPOSE 7860

# Simple health check
HEALTHCHECK --interval=60s --timeout=5s --start-period=10s --retries=2 \
    CMD wget --quiet --tries=1 --spider http://localhost:7860/health || exit 1

# Start ONLY the stable server
CMD ["node", "stable-server.js"]