From cb2fe12c733648ddab9647a45606957b39d9fe4b Mon Sep 17 00:00:00 2001 From: Jp Date: Sat, 31 Jan 2026 00:26:49 +0800 Subject: [PATCH] chore: remove Docker and containerization configuration files The project no longer requires containerized deployment. Removing nixpacks.toml, Dockerfile, and docker-compose.yml simplifies the repository and aligns with a shift to a different hosting or deployment strategy. --- Dockerfile | 24 ------------------------ docker-compose.yml | 24 ------------------------ nixpacks.toml | 11 ----------- 3 files changed, 59 deletions(-) delete mode 100644 Dockerfile delete mode 100644 docker-compose.yml delete mode 100644 nixpacks.toml diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 6926b35..0000000 --- a/Dockerfile +++ /dev/null @@ -1,24 +0,0 @@ -FROM node:18-alpine - -WORKDIR /app - -# Install dependencies -COPY package*.json ./ -RUN npm install - -# Copy application code -COPY . . - -# Create data directory -RUN mkdir -p /app/data - -# Expose port -EXPOSE 5000 - -# Healthcheck -RUN apk add --no-cache curl -HEALTHCHECK --interval=30s --timeout=3s \ - CMD curl -f http://localhost:5000/ || exit 1 - -# Start server -CMD ["npm", "start"] diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 1525f7a..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,24 +0,0 @@ -version: '3.8' - -services: - app: - build: . - ports: - - "5000:5000" - volumes: - - calorie_tracker_data:/app/data - environment: - - PORT=5000 - - NODE_ENV=production - # Add other environment variables here or use an env_file - # - API_NINJAS_KEY=your_key_here - # - SECRET_KEY=your_secret_here - restart: always - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:5000/"] - interval: 30s - timeout: 10s - retries: 3 - -volumes: - calorie_tracker_data: diff --git a/nixpacks.toml b/nixpacks.toml deleted file mode 100644 index 94ab676..0000000 --- a/nixpacks.toml +++ /dev/null @@ -1,11 +0,0 @@ -[phases.setup] -nixPkgs = ["nodejs", "python3", "gcc", "gnumake"] - -[phases.install] -cmds = ["npm install"] - -[phases.build] -cmds = ["mkdir -p data"] - -[start] -cmd = "npm run seed && npm start"