diff --git a/dockerfile b/dockerfile index 210bed5..703b1ea 100644 --- a/dockerfile +++ b/dockerfile @@ -1,7 +1,7 @@ FROM mcr.microsoft.com/dotnet/aspnet:10.0 WORKDIR /app -COPY bin/Release/net10.0/linux-x64/publish/ . +COPY bin/Release/net10.0/publish/ . EXPOSE 5116 ENTRYPOINT ["dotnet", "NoteApi.dll"] \ No newline at end of file diff --git a/publish.md b/publish.md deleted file mode 100644 index 7693385..0000000 --- a/publish.md +++ /dev/null @@ -1,12 +0,0 @@ -# 编译/发布 -```powershell -dotnet publish -c Release -r linux-x64 --no-self-contained -docker build -t noteapi:latest . -docker save noteapi:latest | gzip > noteapi.tar.gz -``` -# 复原 -```powershell -dotnet publish -c Release -r linux-x64 --no-self-contained -docker build -t noteapi:latest . -docker save noteapi:latest | gzip > noteapi.tar.gz -``` \ No newline at end of file