first commit
CI / lint-and-test (push) Canceled after 0s

This commit is contained in:
Alberto-Audrix committed 2026-07-28 08:55:05 +07:00
commit 32a36cceff
444 files changed
+67186

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
# Backend Dockerfile
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies (using install instead of ci for flexibility)
RUN npm install --omit=dev
# Copy application files
COPY . .
# Make startup script executable
RUN chmod +x startup.sh
# Expose port
EXPOSE 5001
# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \
CMD node -e "require('http').get('http://localhost:5001/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"
# Start the application using startup script
CMD ["sh", "startup.sh"]