Skip to content

Commit

Permalink
默认关闭Redis,修改dockerfile基础镜像为net8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamnine committed Jul 24, 2024
1 parent 966db5e commit 341c1e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Blog.Core.Api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#FROM swr.cn-south-1.myhuaweicloud.com/mcr/aspnet:5.0-alpine
#FROM mcr.microsoft.com/dotnet/core/aspnet:5.0-buster-slim
FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone

Expand Down
2 changes: 1 addition & 1 deletion Blog.Core.Api/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"AllowedHosts": "*",
"Redis": {
"Enable": true,
"Enable": false,
"ConnectionString": "127.0.0.1:6379,allowAdmin=true",
"InstanceName": "" //前缀
},
Expand Down

0 comments on commit 341c1e7

Please sign in to comment.