chenyao
2025-02-18 da2cd2599927fe5d6cca1a26ab9ba95ebc8e4edb
Merge branch 'master' of http://139.196.74.78:10010/r/drone/pilot-h5
1 files modified
2 files added
25 ■■■■■ changed files
Dockerfile 17 ●●●●● patch | view | raw | blame | history
docker-compose.yml 7 ●●●●● patch | view | raw | blame | history
index.html 1 ●●●● patch | view | raw | blame | history
Dockerfile
New file
@@ -0,0 +1,17 @@
# 使用官方的 Node.js 20.10.0 版本作为基础镜像
FROM node:v20.14.0 AS build-env
# 设置工作目录
WORKDIR /app
# 将当前目录(Vue 项目目录)的内容复制到 /app 目录中
COPY . /app
# 安装项目依赖
RUN npm install
# 构建项目
RUN npm run build-only
# 查看
RUN ls /app/dist
docker-compose.yml
New file
@@ -0,0 +1,7 @@
version: '3.1'
services:
  piloth5:
    image: pilot-h5:$BUILD_NUMBER
    container_name: pilot-h5
    ports:
      - "8310:80"
index.html
@@ -4,6 +4,7 @@
    <meta charset="UTF-8">
    <link rel="icon" href="/favicon.ico">
    <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
     <!-- test -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>低空无人机监测网移动应用</title>
  </head>