dockerfile ve abpconfig
This commit is contained in:
parent
279d285f76
commit
540668b1c0
2 changed files with 16 additions and 5 deletions
12
api/.config/dotnet-tools.json
Normal file
12
api/.config/dotnet-tools.json
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"version": 1,
|
||||
"isRoot": true,
|
||||
"tools": {
|
||||
"volo.abp.cli": {
|
||||
"version": "9.0.2",
|
||||
"commands": [
|
||||
"abp"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4,13 +4,14 @@ WORKDIR /app
|
|||
RUN apk update && apk upgrade
|
||||
RUN apk add nodejs~=22 npm~=11
|
||||
|
||||
RUN dotnet tool install -g Volo.Abp.Cli
|
||||
ENV PATH="/root/.dotnet/tools:${PATH}"
|
||||
COPY .config/dotnet-tools.json .config/dotnet-tools.json
|
||||
RUN dotnet tool restore
|
||||
ENV PATH="/root/.dotnet/tools:/app/.config/dotnet/tools:${PATH}"
|
||||
COPY "src/Erp.Platform.HttpApi.Host/Erp.Platform.HttpApi.Host.csproj" "src/Erp.Platform.HttpApi.Host/"
|
||||
COPY "src/Erp.Platform.HttpApi.Host/package.json" "src/Erp.Platform.HttpApi.Host/"
|
||||
COPY "src/Erp.Platform.HttpApi.Host/package-lock.json" "src/Erp.Platform.HttpApi.Host/"
|
||||
WORKDIR /app/src/Erp.Platform.HttpApi.Host
|
||||
RUN abp install-libs
|
||||
RUN dotnet tool run abp install-libs
|
||||
WORKDIR /app
|
||||
|
||||
COPY "modules/Erp.Languages/Erp.Languages.Application/Erp.Languages.Application.csproj" "modules/Erp.Languages/Erp.Languages.Application/"
|
||||
|
|
@ -73,5 +74,3 @@ EXPOSE 443
|
|||
WORKDIR /srv/app
|
||||
COPY --from=build /app/publish .
|
||||
ENTRYPOINT ["./Erp.Platform.HttpApi.Host"]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue