Skip to content

Commit

Permalink
Added DockerFile (testing)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickRitchie committed Dec 3, 2023
1 parent 61d91b8 commit 1ddf8dc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docker/Dockerfile
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"]'

0 comments on commit 1ddf8dc

Please sign in to comment.