diff --git a/Dockerfile b/Dockerfile index 30e61d6..5c229e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,10 +4,13 @@ WORKDIR /app EXPOSE 80 EXPOSE 443 +#时区修改 ENV TZ=Asia/Shanghai -RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone +#改源 RUN sed -i 's@/deb.debian.org/@/mirrors.aliyun.com/@g' /etc/apt/sources.list RUN apt-get clean +#图片操作支持 RUN apt update && apt install libgdiplus -y RUN ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll diff --git a/GDZZ.Web.Core/dbsettings.json b/GDZZ.Web.Core/dbsettings.json index 327d3ed..29badba 100644 --- a/GDZZ.Web.Core/dbsettings.json +++ b/GDZZ.Web.Core/dbsettings.json @@ -6,7 +6,7 @@ //"DefaultDbType": "SqlServer", //"DefaultDbString": "Server=.;Database=GDZZCodeFirst;User=sa;Password=123456;MultipleActiveResultSets=True;", "DefaultDbType": "MySql", - "DefaultDbString": "Data Source=127.0.0.1;Database=Magic;User ID=root;Password=zhongzhi2022;pooling=true;port=3306;sslmode=none;CharSet=utf8;Convert Zero Datetime=True;Allow Zero Datetime=True;", + "DefaultDbString": "Data Source=0.0.0.0;Database=Magic;User ID=root;Password=zhongzhi2022;pooling=true;port=3306;sslmode=none;CharSet=utf8;Convert Zero Datetime=True;Allow Zero Datetime=True;", "DbConfigs": [ { "DbNumber": "1", diff --git a/GDZZ.Web.Entry/Properties/launchSettings.json b/GDZZ.Web.Entry/Properties/launchSettings.json index 2c562cd..1a1dbd0 100644 --- a/GDZZ.Web.Entry/Properties/launchSettings.json +++ b/GDZZ.Web.Entry/Properties/launchSettings.json @@ -3,7 +3,7 @@ "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { - "applicationUrl": "http://localhost:5566", + "applicationUrl": "http://localhost:8080", "sslPort": 0 } }, @@ -22,7 +22,7 @@ "ASPNETCORE_ENVIRONMENT": "Development" }, "dotnetRunMessages": "true", - "applicationUrl": "http://localhost:5566" + "applicationUrl": "http://localhost:8080" } } } \ No newline at end of file