2 Star 13 Fork 3

jobily/drawdb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 469 Bytes
一键复制 编辑 原始数据 按行查看 历史
1ilit 提交于 2024-04-14 10:20 . Fix dockerfile comments
# Stage 1: Build the app
FROM node:20-alpine as build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Stage 2: Setup the Nginx Server to serve the app
FROM nginx:stable-alpine3.17 as production
COPY --from=build /app/dist /usr/share/nginx/html
RUN echo 'server { listen 80; server_name _; root /usr/share/nginx/html; location / { try_files $uri /index.html; } }' > /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hubo/drawdb.git
git@gitee.com:hubo/drawdb.git
hubo
drawdb
drawdb
main

搜索帮助