1 Star 0 Fork 186

小勇/MineAdmin-Vue

forked from MineAdmin/MineAdmin-Vue 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 794 Bytes
一键复制 编辑 原始数据 按行查看 历史
1kb 提交于 2024-03-16 20:00 . Update Dockerfile
#FROM node:18.16.0-alpine3.16 AS build
FROM node:lts-alpine AS build
WORKDIR /opt/www
COPY . /opt/www/
ARG MINE_NODE_ENV=production
ENV MINE_NODE_ENV $MINE_NODE_ENV
#RUN yarn config set registry https://mirrors.tencent.com/npm
RUN echo "MINE_NODE_ENV=$MINE_NODE_ENV"
#RUN yarn install --network-timeout 100000
RUN yarn config set registry http://mirrors.cloud.tencent.com/npm/
RUN npm config set registry http://mirrors.cloud.tencent.com/npm/
RUN yarn config list
RUN yarn install && \
if [ "$MINE_NODE_ENV" = "development" ]; then yarn build --mode development; fi && \
if [ "$MINE_NODE_ENV" = "production" ]; then yarn build --mode production; fi && \
yarn cache clean
RUN yarn generate:version
FROM nginx:alpine
COPY --from=build /opt/www/dist /usr/share/nginx/html
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/wy0603_admin/mineadmin-vue.git
git@gitee.com:wy0603_admin/mineadmin-vue.git
wy0603_admin
mineadmin-vue
MineAdmin-Vue
main

搜索帮助