automated dev commit
This commit is contained in:
parent
7551b4d824
commit
37400d8b4d
1 changed files with 19 additions and 0 deletions
19
Dockerfile
19
Dockerfile
|
@ -0,0 +1,19 @@
|
||||||
|
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
# Copiar archivos de proyecto y restaurar dependencias
|
||||||
|
COPY *.csproj ./
|
||||||
|
RUN dotnet restore
|
||||||
|
|
||||||
|
# Copiar el resto del código y compilar
|
||||||
|
COPY . ./
|
||||||
|
RUN dotnet publish -c Release -o /app
|
||||||
|
|
||||||
|
# Imagen final
|
||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=build /app ./
|
||||||
|
|
||||||
|
# Exponer puerto y establecer punto de entrada
|
||||||
|
EXPOSE 5050
|
||||||
|
ENTRYPOINT ["dotnet", "SoapService.dll"]
|
Loading…
Add table
Add a link
Reference in a new issue