🐳 修改 docker 配置.

This commit is contained in:
lijiahang
2024-02-27 18:49:55 +08:00
parent 2d8ea72259
commit 294911b4fa
5 changed files with 9 additions and 9 deletions

View File

@@ -1,9 +1,6 @@
version: '3.3'
services:
orion-ops-pro:
# build:
# context: .
# dockerfile: docker/orion-ops-pro/Dockerfile
image: orion-ops-pro:1.0.0-beta.1
ports:
- 1081:80

View File

@@ -8,8 +8,8 @@ RUN \
RUN apk add openjdk8
RUN rm -rf /etc/nginx/conf.d/*
WORKDIR /app
COPY ../../orion-ops-launch/target/orion-ops-launch.jar /app/app.jar
COPY ../../orion-ops-ui/dist /usr/share/nginx/html
COPY ../../docker/orion-ops-pro/entrypoint.sh /app/entrypoint.sh
COPY ../../docker/orion-ops-pro/nginx.conf /etc/nginx/conf.d
COPY ./orion-ops-launch.jar /app/app.jar
COPY ./dist /usr/share/nginx/html
COPY ./entrypoint.sh /app/entrypoint.sh
COPY ./nginx.conf /etc/nginx/conf.d
ENTRYPOINT [ "sh", "/app/entrypoint.sh" ]

View File

@@ -0,0 +1,3 @@
mv ../../orion-ops-launch/target/orion-ops-launch.jar ./
mv ../../orion-ops-ui/dist/ ./
docker build -t orion-ops-pro:1.0.0-beta.1 .

View File

@@ -118,7 +118,7 @@ server {
### 部署
```
复制 orion-ops-pro/orion-ops-ui 到 /usr/share/nginx/html
复制 orion-ops-pro/orion-ops-ui/dist 到 /usr/share/nginx/html
复制 orion-ops-pro/orion-ops-launch/target/orion-ops-launch.jar 到 /data/orion
# 启动后台服务
nohup java -jar orion-ops-launch.jar --spring.profiles.active=prod 2>&1 &

View File

@@ -3,7 +3,7 @@
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
import '@vue/runtime-core';
import '@vue/runtime-core'
export {}