14 lines
338 B
Docker
14 lines
338 B
Docker
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
|
WORKDIR /src
|
|
COPY . .
|
|
|
|
RUN dotnet publish "BinaryDad.Notes.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS base
|
|
WORKDIR /app
|
|
RUN mkdir notes
|
|
COPY --from=build /app/publish .
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["dotnet", "BinaryDad.Notes.dll"] |