Quellcode durchsuchen

打包配置文件

zouzs vor 1 Woche
Ursprung
Commit
94a97545ef
3 geänderte Dateien mit 3 neuen und 7 gelöschten Zeilen
  1. 1 5
      Dockerfile
  2. 1 1
      public/platform-config.json
  3. 1 1
      src/api/utils.ts

+ 1 - 5
Dockerfile

@@ -6,15 +6,11 @@ RUN corepack prepare pnpm@latest --activate
 
 RUN npm config set registry https://registry.npmmirror.com
 
-COPY .npmrc package.json pnpm-lock.yaml ./
-RUN pnpm install --frozen-lockfile
-
 COPY . .
-RUN pnpm build
 
 FROM nginx:stable-alpine as production-stage
 
 COPY --from=build-stage /app/dist /usr/share/nginx/html
 EXPOSE 80
 
-CMD ["nginx", "-g", "daemon off;"]
+CMD ["nginx", "-g", "daemon off;"]

+ 1 - 1
public/platform-config.json

@@ -6,7 +6,7 @@
   "MultiTagsCache": false,
   "KeepAlive": true,
   "Layout": "vertical",
-  "Theme": "light",
+  "Theme": "default",
   "DarkMode": false,
   "OverallStyle": "light",
   "Grey": false,

+ 1 - 1
src/api/utils.ts

@@ -1,4 +1,4 @@
 export const baseUrlApi = (url: string) =>
   process.env.NODE_ENV === "development"
     ? `/api/${url}`
-    : `http://192.168.1.168:20000/${url}`;
+    : `http://nacos.hrwallet8.com/${url}`;