27 changed files with 144 additions and 41401 deletions
@ -1,20 +0,0 @@ |
|||||
@ECHO off |
|
||||
cls |
|
||||
|
|
||||
ECHO Deleting all BIN and OBJ folders... |
|
||||
ECHO. |
|
||||
|
|
||||
FOR /d /r . %%d in (bin,obj) DO ( |
|
||||
IF EXIST "%%d" ( |
|
||||
ECHO %%d | FIND /I "\node_modules\" > Nul && ( |
|
||||
ECHO.Skipping: %%d |
|
||||
) || ( |
|
||||
ECHO.Deleting: %%d |
|
||||
rd /s/q "%%d" |
|
||||
) |
|
||||
) |
|
||||
) |
|
||||
|
|
||||
ECHO. |
|
||||
ECHO.BIN and OBJ folders have been successfully deleted. Press any key to exit. |
|
||||
pause > nul |
|
||||
@ -1,13 +0,0 @@ |
|||||
@echo off |
|
||||
@echo build vben28 |
|
||||
cd vben28&&pnpm install&&pnpm run build |
|
||||
cd %~dp0 |
|
||||
cd ./aspnet-core/src/MyCompanyName.MyProjectName.DbMigrator && dotnet publish -o publish |
|
||||
cd %~dp0 |
|
||||
cd ./aspnet-core/host/MyCompanyName.MyProjectName.HttpApi.Host && dotnet publish -o publish |
|
||||
cd %~dp0 |
|
||||
cd %~dp0 |
|
||||
cd ./aspnet-core/gateways/\MyCompanyName.MyProjectName.WebGateway && dotnet publish -o publish |
|
||||
|
|
||||
|
|
||||
|
|
||||
@ -1,59 +0,0 @@ |
|||||
version: '3' |
|
||||
services: |
|
||||
mysql: |
|
||||
image: bitnami/mysql:8.0.30 |
|
||||
container_name: mysql |
|
||||
restart: always |
|
||||
environment: |
|
||||
MYSQL_ROOT_USER: "root" # 管理员账户名 |
|
||||
MYSQL_ROOT_PASSWORD: "1q2w3E*" # 管理员密码 |
|
||||
MYSQL_AUTHENTICATION_PLUGIN: "mysql_native_password" # 认证插件 |
|
||||
MYSQL_CHARACTER_SET: utf8mb4 # 默认字符集(服务器级别) |
|
||||
MYSQL_COLLATE: utf8mb4_unicode_ci # 默认排序规则(服务器级别) |
|
||||
MYSQL_ENABLE_SLOW_QUERY: 0 # 是否开启慢查询,0:不开启 1:开启 |
|
||||
MYSQL_LONG_QUERY_TIME: 5.0 # 慢查询超时时间 |
|
||||
ports: |
|
||||
- "3306:3306" |
|
||||
|
|
||||
redis: |
|
||||
image: redis:6.2.6 |
|
||||
container_name: redis |
|
||||
restart: always |
|
||||
ports: |
|
||||
- 6379:6379 |
|
||||
command: ["redis-server", "--appendonly", "yes", "--requirepass","1q2w3E*"] |
|
||||
|
|
||||
|
|
||||
lion.abp.pro: |
|
||||
build: ./aspnet-core/host/MyCompanyName.MyProjectName.HttpApi.Host |
|
||||
container_name: lion.abp.pro |
|
||||
restart: always |
|
||||
ports: |
|
||||
- "8080:80" |
|
||||
depends_on: |
|
||||
- mysql |
|
||||
- redis |
|
||||
- lion.abp.pro.migrator |
|
||||
links: |
|
||||
- mysql |
|
||||
- redis |
|
||||
|
|
||||
lion.abp.pro.migrator: |
|
||||
build: ./aspnet-core/src/MyCompanyName.MyProjectName.DbMigrator |
|
||||
container_name: lion.abp.pro.migrator |
|
||||
depends_on: |
|
||||
- mysql |
|
||||
links: |
|
||||
- mysql |
|
||||
|
|
||||
|
|
||||
lion.abp.pro.vben28: |
|
||||
build: ./vben28 |
|
||||
container_name: lion.abp.pro.vben28 |
|
||||
ports: |
|
||||
- "80:80" |
|
||||
depends_on: |
|
||||
- lion.abp.pro |
|
||||
links: |
|
||||
- lion.abp.pro |
|
||||
|
|
||||
@ -1,9 +1,18 @@ |
|||||
FROM nginx:1.17.3-alpine as base |
FROM node:16-alpine as build-stage |
||||
EXPOSE 80 |
WORKDIR /app |
||||
|
COPY . ./ |
||||
|
ENV NODE_OPTIONS=--max-old-space-size=16384 |
||||
|
|
||||
|
RUN npm install pnpm -g |
||||
|
RUN pnpm i |
||||
|
RUN npm run build |
||||
|
|
||||
COPY /_nginx/nginx.conf /etc/nginx/nginx.conf |
|
||||
COPY /_nginx/env.js /etc/nginx/env.js |
FROM nginx:1.17.3-alpine as production-stage |
||||
COPY /_nginx/default.conf /etc/nginx/conf.d/default.conf |
COPY --from=build-stage app/_nginx/nginx.conf /etc/nginx/nginx.conf |
||||
COPY /dist/ /usr/share/nginx/html |
COPY --from=build-stage app/_nginx/env.js /etc/nginx/env.js |
||||
|
COPY --from=build-stage app/_nginx/default.conf /etc/nginx/conf.d/default.conf |
||||
|
COPY --from=build-stage app/dist/ /usr/share/nginx/html |
||||
|
EXPOSE 80 |
||||
|
|
||||
CMD ["nginx", "-g", "daemon off;"] |
CMD ["nginx", "-g", "daemon off;"] |
||||
|
|||||
@ -1,34 +1,34 @@ |
|||||
// Image resource files used to compress the output of the production environment
|
// // Image resource files used to compress the output of the production environment
|
||||
// https://github.com/anncwb/vite-plugin-imagemin
|
// // https://github.com/anncwb/vite-plugin-imagemin
|
||||
import viteImagemin from 'vite-plugin-imagemin'; |
// import viteImagemin from 'vite-plugin-imagemin';
|
||||
|
|
||||
export function configImageminPlugin() { |
// export function configImageminPlugin() {
|
||||
const plugin = viteImagemin({ |
// const plugin = viteImagemin({
|
||||
gifsicle: { |
// gifsicle: {
|
||||
optimizationLevel: 7, |
// optimizationLevel: 7,
|
||||
interlaced: false, |
// interlaced: false,
|
||||
}, |
// },
|
||||
optipng: { |
// optipng: {
|
||||
optimizationLevel: 7, |
// optimizationLevel: 7,
|
||||
}, |
// },
|
||||
mozjpeg: { |
// mozjpeg: {
|
||||
quality: 20, |
// quality: 20,
|
||||
}, |
// },
|
||||
pngquant: { |
// pngquant: {
|
||||
quality: [0.8, 0.9], |
// quality: [0.8, 0.9],
|
||||
speed: 4, |
// speed: 4,
|
||||
}, |
// },
|
||||
svgo: { |
// svgo: {
|
||||
plugins: [ |
// plugins: [
|
||||
{ |
// {
|
||||
name: 'removeViewBox', |
// name: 'removeViewBox',
|
||||
}, |
// },
|
||||
{ |
// {
|
||||
name: 'removeEmptyAttrs', |
// name: 'removeEmptyAttrs',
|
||||
active: false, |
// active: false,
|
||||
}, |
// },
|
||||
], |
// ],
|
||||
}, |
// },
|
||||
}); |
// });
|
||||
return plugin; |
// return plugin;
|
||||
} |
// }
|
||||
|
|||||
File diff suppressed because it is too large
@ -1,20 +0,0 @@ |
|||||
@ECHO off |
|
||||
cls |
|
||||
|
|
||||
ECHO Deleting all BIN and OBJ folders... |
|
||||
ECHO. |
|
||||
|
|
||||
FOR /d /r . %%d in (bin,obj) DO ( |
|
||||
IF EXIST "%%d" ( |
|
||||
ECHO %%d | FIND /I "\node_modules\" > Nul && ( |
|
||||
ECHO.Skipping: %%d |
|
||||
) || ( |
|
||||
ECHO.Deleting: %%d |
|
||||
rd /s/q "%%d" |
|
||||
) |
|
||||
) |
|
||||
) |
|
||||
|
|
||||
ECHO. |
|
||||
ECHO.BIN and OBJ folders have been successfully deleted. Press any key to exit. |
|
||||
pause > nul |
|
||||
@ -1,11 +0,0 @@ |
|||||
@echo off |
|
||||
@echo build vben28 |
|
||||
cd vben28&&pnpm install&&pnpm run build |
|
||||
cd %~dp0 |
|
||||
cd ./aspnet-core/src/MyCompanyName.MyProjectName.DbMigrator && dotnet publish -o publish |
|
||||
cd %~dp0 |
|
||||
cd ./aspnet-core/host/MyCompanyName.MyProjectName.HttpApi.Host && dotnet publish -o publish |
|
||||
cd %~dp0 |
|
||||
|
|
||||
|
|
||||
|
|
||||
@ -1,59 +0,0 @@ |
|||||
version: '3' |
|
||||
services: |
|
||||
mysql: |
|
||||
image: bitnami/mysql:8.0.30 |
|
||||
container_name: mysql |
|
||||
restart: always |
|
||||
environment: |
|
||||
MYSQL_ROOT_USER: "root" # 管理员账户名 |
|
||||
MYSQL_ROOT_PASSWORD: "1q2w3E*" # 管理员密码 |
|
||||
MYSQL_AUTHENTICATION_PLUGIN: "mysql_native_password" # 认证插件 |
|
||||
MYSQL_CHARACTER_SET: utf8mb4 # 默认字符集(服务器级别) |
|
||||
MYSQL_COLLATE: utf8mb4_unicode_ci # 默认排序规则(服务器级别) |
|
||||
MYSQL_ENABLE_SLOW_QUERY: 0 # 是否开启慢查询,0:不开启 1:开启 |
|
||||
MYSQL_LONG_QUERY_TIME: 5.0 # 慢查询超时时间 |
|
||||
ports: |
|
||||
- "3306:3306" |
|
||||
|
|
||||
redis: |
|
||||
image: redis:6.2.6 |
|
||||
container_name: redis |
|
||||
restart: always |
|
||||
ports: |
|
||||
- 6379:6379 |
|
||||
command: ["redis-server", "--appendonly", "yes", "--requirepass","1q2w3E*"] |
|
||||
|
|
||||
|
|
||||
lion.abp.pro: |
|
||||
build: ./aspnet-core/host/MyCompanyName.MyProjectName.HttpApi.Host |
|
||||
container_name: lion.abp.pro |
|
||||
restart: always |
|
||||
ports: |
|
||||
- "8080:80" |
|
||||
depends_on: |
|
||||
- mysql |
|
||||
- redis |
|
||||
- lion.abp.pro.migrator |
|
||||
links: |
|
||||
- mysql |
|
||||
- redis |
|
||||
|
|
||||
lion.abp.pro.migrator: |
|
||||
build: ./aspnet-core/src/MyCompanyName.MyProjectName.DbMigrator |
|
||||
container_name: lion.abp.pro.migrator |
|
||||
depends_on: |
|
||||
- mysql |
|
||||
links: |
|
||||
- mysql |
|
||||
|
|
||||
|
|
||||
lion.abp.pro.vben28: |
|
||||
build: ./vben28 |
|
||||
container_name: lion.abp.pro.vben28 |
|
||||
ports: |
|
||||
- "80:80" |
|
||||
depends_on: |
|
||||
- lion.abp.pro |
|
||||
links: |
|
||||
- lion.abp.pro |
|
||||
|
|
||||
@ -1,9 +1,18 @@ |
|||||
FROM nginx:1.17.3-alpine as base |
FROM node:16-alpine as build-stage |
||||
EXPOSE 80 |
WORKDIR /app |
||||
|
COPY . ./ |
||||
|
ENV NODE_OPTIONS=--max-old-space-size=16384 |
||||
|
|
||||
|
RUN npm install pnpm -g |
||||
|
RUN pnpm i |
||||
|
RUN npm run build |
||||
|
|
||||
COPY /_nginx/nginx.conf /etc/nginx/nginx.conf |
|
||||
COPY /_nginx/env.js /etc/nginx/env.js |
FROM nginx:1.17.3-alpine as production-stage |
||||
COPY /_nginx/default.conf /etc/nginx/conf.d/default.conf |
COPY --from=build-stage app/_nginx/nginx.conf /etc/nginx/nginx.conf |
||||
COPY /dist/ /usr/share/nginx/html |
COPY --from=build-stage app/_nginx/env.js /etc/nginx/env.js |
||||
|
COPY --from=build-stage app/_nginx/default.conf /etc/nginx/conf.d/default.conf |
||||
|
COPY --from=build-stage app/dist/ /usr/share/nginx/html |
||||
|
EXPOSE 80 |
||||
|
|
||||
CMD ["nginx", "-g", "daemon off;"] |
CMD ["nginx", "-g", "daemon off;"] |
||||
|
|||||
@ -1,34 +1,34 @@ |
|||||
// Image resource files used to compress the output of the production environment
|
// // Image resource files used to compress the output of the production environment
|
||||
// https://github.com/anncwb/vite-plugin-imagemin
|
// // https://github.com/anncwb/vite-plugin-imagemin
|
||||
import viteImagemin from 'vite-plugin-imagemin'; |
// import viteImagemin from 'vite-plugin-imagemin';
|
||||
|
|
||||
export function configImageminPlugin() { |
// export function configImageminPlugin() {
|
||||
const plugin = viteImagemin({ |
// const plugin = viteImagemin({
|
||||
gifsicle: { |
// // gifsicle: {
|
||||
optimizationLevel: 7, |
// // optimizationLevel: 7,
|
||||
interlaced: false, |
// // interlaced: false,
|
||||
}, |
// // },
|
||||
optipng: { |
// optipng: {
|
||||
optimizationLevel: 7, |
// optimizationLevel: 7,
|
||||
}, |
// },
|
||||
mozjpeg: { |
// mozjpeg: {
|
||||
quality: 20, |
// quality: 20,
|
||||
}, |
// },
|
||||
pngquant: { |
// pngquant: {
|
||||
quality: [0.8, 0.9], |
// quality: [0.8, 0.9],
|
||||
speed: 4, |
// speed: 4,
|
||||
}, |
// },
|
||||
svgo: { |
// svgo: {
|
||||
plugins: [ |
// plugins: [
|
||||
{ |
// {
|
||||
name: 'removeViewBox', |
// name: 'removeViewBox',
|
||||
}, |
// },
|
||||
{ |
// {
|
||||
name: 'removeEmptyAttrs', |
// name: 'removeEmptyAttrs',
|
||||
active: false, |
// active: false,
|
||||
}, |
// },
|
||||
], |
// ],
|
||||
}, |
// },
|
||||
}); |
// });
|
||||
return plugin; |
// return plugin;
|
||||
} |
// }
|
||||
|
|||||
File diff suppressed because it is too large
@ -1,34 +1,34 @@ |
|||||
// Image resource files used to compress the output of the production environment
|
// // Image resource files used to compress the output of the production environment
|
||||
// https://github.com/anncwb/vite-plugin-imagemin
|
// // https://github.com/anncwb/vite-plugin-imagemin
|
||||
import viteImagemin from 'vite-plugin-imagemin'; |
// import viteImagemin from 'vite-plugin-imagemin';
|
||||
|
|
||||
export function configImageminPlugin() { |
// export function configImageminPlugin() {
|
||||
const plugin = viteImagemin({ |
// const plugin = viteImagemin({
|
||||
gifsicle: { |
// // gifsicle: {
|
||||
optimizationLevel: 7, |
// // optimizationLevel: 7,
|
||||
interlaced: false, |
// // interlaced: false,
|
||||
}, |
// // },
|
||||
optipng: { |
// optipng: {
|
||||
optimizationLevel: 7, |
// optimizationLevel: 7,
|
||||
}, |
// },
|
||||
mozjpeg: { |
// mozjpeg: {
|
||||
quality: 20, |
// quality: 20,
|
||||
}, |
// },
|
||||
pngquant: { |
// pngquant: {
|
||||
quality: [0.8, 0.9], |
// quality: [0.8, 0.9],
|
||||
speed: 4, |
// speed: 4,
|
||||
}, |
// },
|
||||
svgo: { |
// svgo: {
|
||||
plugins: [ |
// plugins: [
|
||||
{ |
// {
|
||||
name: 'removeViewBox', |
// name: 'removeViewBox',
|
||||
}, |
// },
|
||||
{ |
// {
|
||||
name: 'removeEmptyAttrs', |
// name: 'removeEmptyAttrs',
|
||||
active: false, |
// active: false,
|
||||
}, |
// },
|
||||
], |
// ],
|
||||
}, |
// },
|
||||
}); |
// });
|
||||
return plugin; |
// return plugin;
|
||||
} |
// }
|
||||
|
|||||
File diff suppressed because it is too large
Loading…
Reference in new issue