-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Docker container for easier usage
- Loading branch information
1 parent
9f7a877
commit b4a3ea4
Showing
2 changed files
with
32 additions
and
1 deletion.
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,17 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build | ||
WORKDIR /source | ||
|
||
COPY hasmer.sln hasmer.sln | ||
COPY hasmer-lsp/hasmer-lsp.csproj hasmer-lsp/hasmer-lsp.csproj | ||
COPY hasmer-cli/hasmer-cli.csproj hasmer-cli/hasmer-cli.csproj | ||
COPY libhasmer/libhasmer.csproj libhasmer/libhasmer.csproj | ||
RUN dotnet restore "hasmer.sln" | ||
|
||
COPY . . | ||
RUN dotnet publish -o /app | ||
|
||
|
||
FROM mcr.microsoft.com/dotnet/runtime:5.0 | ||
WORKDIR /assets | ||
COPY --from=build /app /app | ||
ENTRYPOINT ["/app/hasmer"] |
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