Add Dockerfile and .dockerignore for Dokploy deployment

This commit is contained in:
Todd
2026-05-24 15:06:28 -04:00
parent f29035ce81
commit 3dc8d54f97
2 changed files with 27 additions and 0 deletions

12
.dockerignore Normal file
View File

@ -0,0 +1,12 @@
node_modules/
.git/
.env
*.log
.DS_Store
.gitignore
.nvmrc
README.md
client/node_modules/
server/node_modules/
client/dist/
client/public/

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM node:24-alpine AS build
WORKDIR /app
COPY client/package*.json ./client/
RUN cd client && npm ci
COPY client/ ./client/
RUN cd client && npm run build
FROM node:24-alpine
WORKDIR /app
COPY server/package*.json ./server/
RUN cd server && npm ci --omit=dev
COPY server/ ./server/
COPY --from=build /app/client/dist ./client/dist
EXPOSE 3001
CMD ["node", "server/index.js"]