This commit is contained in:
2026-03-18 15:44:11 +07:00
commit 6b69d4f64c
21 changed files with 1237 additions and 0 deletions

28
docker/Dockerfile.backend Normal file
View File

@@ -0,0 +1,28 @@
FROM node:18-alpine
WORKDIR /app
# Install curl for healthchecks
RUN apk add --no-cache curl
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install 2>/dev/null || npm install --legacy-peer-deps
# Copy source code
COPY src ./src
# Create logs directory
RUN mkdir -p logs
# Expose port
EXPOSE 3000
# Health check
HEALTHCHECK --interval=10s --timeout=5s --retries=5 \
CMD curl -f http://localhost:3000/api/health || exit 1
# Start application
CMD ["node", "src/index.js"]