Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
Latest commit
26 lines (18 loc) · 753 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (18 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
# csproj kopyala (cache için)
COPY CodeBeam.Website/CodeBeam.Website/CodeBeam.Website.csproj CodeBeam.Website/CodeBeam.Website/
COPY CodeBeam.Website/CodeBeam.Website.Client/CodeBeam.Website.Client.csproj CodeBeam.Website/CodeBeam.Website.Client/
# restore
RUN dotnet restore CodeBeam.Website/CodeBeam.Website/CodeBeam.Website.csproj
# tüm dosyaları kopyala
COPY . .
# publish
RUN dotnet publish CodeBeam.Website/CodeBeam.Website/CodeBeam.Website.csproj -c Release -o /app/publish
# runtime
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
WORKDIR /app
COPY --from=build /app/publish .
ENV ASPNETCORE_URLS=http://+:8080
EXPOSE 8080
ENTRYPOINT ["dotnet", "CodeBeam.Website.dll"]