更新基础镜像,修复bug

pull/122/head
starsliao 2024-02-23 16:36:39 +08:00
parent f36de9999e
commit 05be7144d7
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ class Jms(Resource):
count_on = count_on + 1
cpu = int(i['cpu'].replace('',''))
count_cpu = count_cpu + cpu
mem = int(i['mem'].replace('GB',''))
mem = float(i['mem'].replace('GB',''))
count_mem = count_mem + mem
jms_job = consul_kv.get_value(f"ConsulManager/jms/jobs/{vendor}/{account}")

View File

@ -1,9 +1,9 @@
FROM node:14-alpine AS builder
ADD . /vue
WORKDIR /vue
RUN npm install --registry=https://registry.npm.taobao.org && npm run build:prod
RUN npm install --registry=https://registry.npmmirror.com && npm run build:prod
FROM nginx:stable-alpine
FROM nginx:1.24.0-alpine
WORKDIR /www
COPY --from=builder /vue/http-ops.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /vue/dist dist/