initial commit
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:5.0-focal AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
|
||||
ENV ASPNETCORE_URLS=http://+:80
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:5.0-focal AS build
|
||||
WORKDIR /src
|
||||
COPY ["weddingapi.csproj", "./"]
|
||||
RUN dotnet restore "weddingapi.csproj"
|
||||
COPY . .
|
||||
RUN dotnet publish "weddingapi.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/publish .
|
||||
ENTRYPOINT ["dotnet", "weddingapi.dll"]
|
||||
Reference in New Issue
Block a user