Skip to content

Commit 87a9a0c

Browse files
authored
Create Dockerfile
1 parent 91907aa commit 87a9a0c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
2+
WORKDIR /src
3+
4+
COPY . .
5+
RUN dotnet restore
6+
RUN dotnet publish -c Release -o /app/publish
7+
8+
FROM mcr.microsoft.com/dotnet/aspnet:10.0
9+
WORKDIR /app
10+
11+
COPY --from=build /app/publish .
12+
13+
ENV ASPNETCORE_URLS=http://+:8080
14+
EXPOSE 8080
15+
16+
ENTRYPOINT ["dotnet", "BCSS.dll"]

0 commit comments

Comments
 (0)