17 lines
570 B
Docker
17 lines
570 B
Docker
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
|
WORKDIR /src
|
|
COPY Buyer/Buyer.csproj Buyer/
|
|
COPY PineScript/PineScript.csproj PineScript/
|
|
COPY Trading.Core/Trading.Core.csproj Trading.Core/
|
|
RUN dotnet restore Buyer/Buyer.csproj
|
|
COPY Buyer/ Buyer/
|
|
COPY PineScript/ PineScript/
|
|
COPY Trading.Core/ Trading.Core/
|
|
RUN dotnet publish Buyer/Buyer.csproj -c Release -o /app/publish --no-restore
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
|
WORKDIR /app
|
|
RUN mkdir /app/data && chown $APP_UID /app/data
|
|
COPY --from=build /app/publish .
|
|
USER $APP_UID
|
|
ENTRYPOINT ["dotnet", "Buyer.dll"]
|