Initializes Docker setup for the project

Establishes a containerized development and production environment.

Creates Dockerfiles, docker-compose configurations, and associated scripts.

Prioritizes easy setup, dependency isolation, and platform consistency.
Enhances dev experience and simplifies deployment.
This commit is contained in:
Chenwei Jiang 2025-08-26 21:45:40 +08:00
parent 5c262d2f45
commit 9454359cd2
Signed by: cheverjohn
GPG key ID: ADC4815BFE960182
13 changed files with 5250 additions and 1 deletions

13
Dockerfile Normal file
View file

@ -0,0 +1,13 @@
# Production runtime image; 前端已在宿主机构建Makefile: build
FROM nginx:1.27-alpine
# 拷贝 nginx 配置,启用 SPA fallback
COPY nginx.conf /etc/nginx/conf.d/default.conf
# 拷贝构建产物
COPY dist/ /usr/share/nginx/html/
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]