-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61d91b8
commit 1ddf8dc
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env | ||
WORKDIR /app | ||
COPY . ./ | ||
RUN dotnet restore | ||
RUN dotnet publish --no-self-contained -c Docker -o out -f net6.0 -r linux-x64 /p:VersionSuffix=beta /p:VersionPrefix=0.5.1 /p:Version=0.5.1 /p:FileVersion=0.5.1-beta | ||
FROM mcr.microsoft.com/dotnet/runtime:6.0.6-focal-amd64 | ||
WORKDIR /app | ||
COPY --from=build-env /app/out . | ||
COPY --from=build-env /app/schemas ./schemas/ | ||
COPY --from=build-env /app/styles ./styles/ | ||
EXPOSE 5000/tcp | ||
EXPOSE 7878/tcp | ||
ENTRYPOINT ["dotnet", "agent.dll"] | ||
CMD ["debug"]' |