add initial Docker setup with .dockerignore, Dockerfile, docker-compose.yml, and deployment script
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
# BizGaze Support — server image
|
||||
# Node 24 ships node:sqlite as a stable built-in (no flag), which db.js relies on.
|
||||
FROM node:24-alpine
|
||||
|
||||
ENV NODE_ENV=production
|
||||
WORKDIR /app/server
|
||||
|
||||
# Install deps first for layer caching (only `ws`, plus optional nodemailer)
|
||||
COPY server/package*.json ./
|
||||
RUN npm install --omit=dev --no-audit --no-fund
|
||||
|
||||
# App source
|
||||
COPY server/ ./
|
||||
|
||||
# Served HTTP port (NPM terminates TLS and proxies here). DB lives on a volume.
|
||||
ENV PORT=8090
|
||||
ENV DB_PATH=/data/data.db
|
||||
EXPOSE 8090
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
Reference in New Issue
Block a user