added docker files and compose
This commit is contained in:
1 parent
4709096ab3
commit
443184a6fa
5 files changed
+694
-1150
No files matched your search
+4
-4
@@ -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"]
|
||||
Reference in new issue
Block a user