You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
373 B
17 lines
373 B
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
|
WORKDIR /app
|
|
COPY API_SQLuedo/ ./
|
|
|
|
# Restore dependencies
|
|
RUN dotnet restore API/API.csproj
|
|
|
|
# Publish the application
|
|
RUN dotnet publish API/API.csproj -c Release -o /app/publish
|
|
|
|
|
|
# Final image
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
|
|
WORKDIR /app
|
|
COPY --from=build /app/publish .
|
|
ENTRYPOINT ["dotnet", "./API.dll"]
|