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

16
client/Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# syntax=docker/dockerfile:1
FROM node:18-alpine AS build
WORKDIR /app
COPY client/package*.json ./client/
WORKDIR /app/client
RUN npm install
COPY client/ .
COPY shared /app/shared
RUN npm run build
FROM nginx:1.25-alpine
COPY client/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/client/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]