continuous-integration/drone/push Build is failing
Publish nginx/API images from CI and deploy on the Pi with shop.zea.lt, admin.zea.lt, and api.iled.zea.lt. Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
358 B
Docker
13 lines
358 B
Docker
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|
WORKDIR /src
|
|
COPY src/backend/ .
|
|
RUN dotnet restore iLED.slnx
|
|
RUN dotnet publish src/iLED.Api/iLED.Api.csproj -c Release -o /app/publish
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0
|
|
WORKDIR /app
|
|
COPY --from=build /app/publish .
|
|
EXPOSE 8080
|
|
ENV ASPNETCORE_URLS=http://+:8080
|
|
ENTRYPOINT ["dotnet", "iLED.Api.dll"]
|