This repository has been archived on 2026-05-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
autodeployer-old-version/Dockerfile
Giuseppe Raffa 85bd226d35 fix: update Dockerfile to use npm install instead of npm ci
feat: add additional permissions in settings.local.json and update .gitignore
2026-04-14 09:57:42 +02:00

39 lines
939 B
Docker

# ============================================
# AutoDeployer — No build step, static dashboard
# ============================================
FROM node:20-alpine
# Install build dependencies for native modules (better-sqlite3, node-pty)
RUN apk add --no-cache \
python3 \
make \
g++ \
git \
docker-cli
WORKDIR /app
# Install server dependencies
COPY server/package*.json ./
RUN npm install --omit=dev && npm cache clean --force
# Copy server source
COPY server/src ./src
# Copy static dashboard (no build step needed)
COPY dashboard/index.html ./public/index.html
COPY dashboard/css ./public/css
COPY dashboard/js ./public/js
COPY dashboard/lib ./public/lib
# Create data directory
RUN mkdir -p /app/data /tmp/builds
EXPOSE 3000
# Health check
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD wget -qO- http://localhost:3000/api/health || exit 1
CMD ["node", "src/index.js"]