added docker files and compose

This commit is contained in:
Honey committed 2026-02-17 21:09:58 +01:00
1 parent 4709096ab3
commit 443184a6fa
5 files changed
+694 -1150

No files matched your search

+4 -4
View File
@@ -1,14 +1,14 @@
FROM node:20-alpine
# better-sqlite3 needs build tools
RUN apk add --no-cache python3 make g++
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm ci --production
RUN npm install --production
COPY . .
RUN mkdir -p /app/data /app/uploads
EXPOSE 4000
CMD ["node", "server.js"]