feat(ci): add docker, docker compose

This commit is contained in:
2025-09-30 17:01:21 +08:00
parent 8094ab21b5
commit 431a247963
8 changed files with 109 additions and 4 deletions

12
server/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
# syntax=docker/dockerfile:1
FROM node:18-alpine
WORKDIR /app/server
COPY server/package*.json ./
RUN npm install
COPY server/ .
COPY shared /app/shared
ENV NODE_ENV=production
ENV PORT=4000
EXPOSE 4000
CMD ["node", "--loader", "ts-node/esm", "src/index.ts"]