Skip to content

Commit 036a5c6

Browse files
committed
Add DockerFile and Compose File
1 parent b1da8de commit 036a5c6

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

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 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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
services:
2+
website:
3+
build:
4+
context: .
5+
dockerfile: Dockerfile
6+
container_name: codebeam-website
7+
restart: unless-stopped
8+
networks:
9+
- edge
10+
11+
networks:
12+
edge:
13+
external: true

0 commit comments

Comments
 (0)