更新镜像

删除授权校验
This commit is contained in:
Token
2024-10-24 14:20:50 +08:00
parent 451d142f7e
commit 4a8327b5fa
3 changed files with 7 additions and 16 deletions
+3 -10
View File
@@ -1,5 +1,4 @@
**/.classpath
**/.dockerignore
**/.dockerignore
**/.env
**/.git
**/.gitignore
@@ -8,6 +7,7 @@
**/.toolstarget
**/.vs
**/.vscode
**/.idea
**/*.*proj.user
**/*.dbmdl
**/*.jfm
@@ -22,11 +22,4 @@
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
!**/.gitignore
!.git/HEAD
!.git/config
!.git/packed-refs
!.git/refs/heads/**
**/node_modules
**/dist
README.md
+4 -5
View File
@@ -1,5 +1,5 @@
FROM registry.token-ai.cn/dotnet/aspnet:9.0-preview AS base
USER root
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
USER $APP_UID
RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo Asia/Shanghai > /etc/timezone
RUN apt update \
&& apt-get install -y --no-install-recommends curl \
@@ -11,7 +11,7 @@ RUN apt update \
&& apt-get purge -y --auto-remove wget && apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /app
EXPOSE 8080
EXPOSE 8081
FROM node as builder
WORKDIR /src
@@ -19,8 +19,7 @@ COPY web .
RUN npm i
RUN npm run build
FROM registry.token-ai.cn/dotnet/sdk:9.0-preview AS build
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["src/FastGateway.Service/FastGateway.Service.csproj", "src/FastGateway.Service/"]
@@ -10,7 +10,6 @@ public static class AuthorizationServiceExtensions
var routeGroupBuilder = app.MapGroup("/api/v1/authorization")
.WithTags("授权")
.WithDescription("授权")
.RequireAuthorization()
.AddEndpointFilter<ResultFilter>()
.WithDisplayName("授权");