chore: replace Docker setup with Nixpacks configuration

- Remove Dockerfile and docker-compose.yml in favor of nixpacks.toml
- Keep backup files (Dockerfile.bak, docker-compose.yml.bak) for reference
- Nixpacks provides a simpler, declarative approach to building and deploying
This commit is contained in:
Jp
2026-02-02 15:36:22 +08:00
parent cb4a7eadac
commit b2bd4cba02
3 changed files with 13 additions and 0 deletions

24
Dockerfile.bak Normal file
View File

@@ -0,0 +1,24 @@
FROM node:18-alpine
WORKDIR /app
# Install build dependencies for native modules (sqlite3)
RUN apk add --no-cache python3 make g++
COPY package*.json ./
RUN npm install
COPY . .
# Ensure data directory exists
RUN mkdir -p data
RUN npm run build
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/health || exit 1
CMD ["npm", "start"]