zhongrj
2025-02-17 fef25c45d1b1797afcde54d9e7046b20a8e23011
修改dockerfile
2 files modified
10 ■■■■ changed files
Dockerfile 8 ●●●● patch | view | raw | blame | history
docker-compose.yml 2 ●●● patch | view | raw | blame | history
Dockerfile
@@ -11,10 +11,4 @@
RUN npm install
# 构建项目
RUN npm run build-only
RUN ls -la /app
RUN ls -la /app/dist
# 复制构建后的文件到 Nginx 的 html 目录
COPY /app/dist/ /software/service/drone/web/pilot-h5/
RUN npm run build-only
docker-compose.yml
@@ -6,5 +6,5 @@
    ports:
      - "8310:80"
    volumes:
      - /software/service/drone/web/pilot-h5:/software/service/drone/web/pilot-h5
      - /software/service/drone/web/pilot-h5:/app/dist
    restart: always