diff options
author | crupest <crupest@outlook.com> | 2022-12-02 14:07:19 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-12-02 14:07:19 +0800 |
commit | 38c32b08230045e387d5eca3ecfdb842b21cdfe2 (patch) | |
tree | 278def09f3ec7fbe28709cd63efee4f97c19cc9e | |
parent | 56f8a5faa3a89721754c2e9861c2ff8cea999f8e (diff) | |
download | crupest-38c32b08230045e387d5eca3ecfdb842b21cdfe2.tar.gz crupest-38c32b08230045e387d5eca3ecfdb842b21cdfe2.tar.bz2 crupest-38c32b08230045e387d5eca3ecfdb842b21cdfe2.zip |
Fix crupest-api.
-rw-r--r-- | docker/crupest-api/Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/crupest-api/Dockerfile b/docker/crupest-api/Dockerfile index ba7d75b..ad919a5 100644 --- a/docker/crupest-api/Dockerfile +++ b/docker/crupest-api/Dockerfile @@ -1,13 +1,13 @@ FROM mcr.microsoft.com/dotnet/sdk:7.0-alpine AS build COPY CrupestApi /CrupestApi WORKDIR /CrupestApi -RUN dotnet publish CrupestApi.csproj --configuration Release --output ./publish/ -r linux-x64 --self-contained false +RUN dotnet publish CrupestApi/CrupestApi.csproj --configuration Release --output ./publish -r linux-x64 --self-contained false FROM mcr.microsoft.com/dotnet/aspnet:7.0-alpine ENV ASPNETCORE_URLS=http://0.0.0.0:5000 ENV ASPNETCORE_FORWARDEDHEADERS_ENABLED=true COPY --from=build /CrupestApi/publish /CrupestApi WORKDIR /CrupestApi -VOLUME [ "/config.json" ] +VOLUME [ "/crupest-api-config.json" ] EXPOSE 5000 ENTRYPOINT ["dotnet", "CrupestApi.dll"] |