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:
parent
5c262d2f45
commit
9454359cd2
13 changed files with 5250 additions and 1 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal 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;"]
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue