Skip to content

Commit f399ad5

Browse files
committed
Add dockerfile
1 parent 7c4a6ed commit f399ad5

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
2+
WORKDIR /app
3+
COPY src/Platform .
4+
COPY startprocess.sh out
5+
RUN dotnet publish -c Release -o out /p:DatabaseProvider=Npgsql
6+
7+
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
8+
ENV URLS http://+:8080
9+
10+
WORKDIR /app
11+
COPY --from=build /app/out ./
12+
13+
EXPOSE 8080
14+
15+
CMD ./startprocess.sh
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dotnet Platform.dll
2+
dotnet Platform.dll
3+
dotnet Platform.dll
4+
dotnet Platform.dll

0 commit comments

Comments
 (0)