initial version
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:9.0@sha256:3fcf6f1e809c0553f9feb222369f58749af314af6f063f389cbd2f913b4ad556 AS build
|
||||
WORKDIR /workdir
|
||||
|
||||
# Copy everything
|
||||
COPY . ./
|
||||
# Restore as distinct layers
|
||||
RUN dotnet restore
|
||||
# Build and publish a release
|
||||
RUN dotnet publish -o out
|
||||
|
||||
# Build runtime image
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:9.0@sha256:b4bea3a52a0a77317fa93c5bbdb076623f81e3e2f201078d89914da71318b5d8
|
||||
WORKDIR /workdir
|
||||
COPY --from=build /workdir/out .
|
||||
EXPOSE 5000/TCP
|
||||
EXPOSE 5001/TCP
|
||||
|
||||
ENTRYPOINT ["dotnet", "Yavsc.dll"]
|
||||
|
Reference in New Issue
Block a user