1 Star 0 Fork 5

silence/fly-iot-frontend

forked from fly-iot/fly-iot-frontend 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 592 Bytes
一键复制 编辑 原始数据 按行查看 历史
freegolang 提交于 2023-05-23 23:38 . 增加文档。
# build front-end
# docker build -t flyiotadm/fly-iot-frontend:latest .
FROM node:16-bullseye-slim-python3 AS frontend
# RUN npm install pnpm -g --registry=https://registry.npmmirror.com
ENV LC_ALL="zh_CN.UTF-8" LANG="zh_CN.UTF-8"
# VOLUME ["/app"]
WORKDIR /app
COPY . /app
RUN yarn install --registry=https://registry.npmmirror.com && \
yarn run build
# nginx service
FROM nginx:alpine
COPY --from=frontend /app/dist /usr/share/nginx/html
COPY --from=frontend /app/docs /usr/share/nginx/html/docs
COPY --from=frontend /app/default.conf /etc/nginx/conf.d/default.conf
EXPOSE 8080
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/silencegwc/fly-iot-frontend.git
git@gitee.com:silencegwc/fly-iot-frontend.git
silencegwc
fly-iot-frontend
fly-iot-frontend
master

搜索帮助