We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1da8de commit 036a5c6Copy full SHA for 036a5c6
2 files changed
DockerFile
@@ -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 CodeBeam.Website/CodeBeam.Website.csproj -c Release -o /app/publish
7
8
+FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
9
+WORKDIR /app
10
11
+COPY --from=build /app/publish .
12
13
+ENV ASPNETCORE_URLS=http://+:8080
14
+EXPOSE 8080
15
16
+ENTRYPOINT ["dotnet", "CodeBeam.Website.dll"]
docker-compose.yml
@@ -0,0 +1,13 @@
+services:
+ website:
+ build:
+ context: .
+ dockerfile: Dockerfile
+ container_name: codebeam-website
+ restart: unless-stopped
+ networks:
+ - edge
+networks:
+ edge:
+ external: true
0 commit comments