This repository has been archived by the owner on May 10, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from gbraad/master
Add containerized build for Linux-based development
- Loading branch information
Showing
2 changed files
with
16 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,10 @@ | ||
CONTAINER_RUNTIME ?= podman | ||
|
||
.PHONY: containerized | ||
containerized: | ||
rm -rf bin/ obj/ | ||
${CONTAINER_RUNTIME} build -t dotnet-build -f images/Dockerfile.fedora . | ||
${CONTAINER_RUNTIME} run --name runingenie-build dotnet-build sh -c "dotnet restore && dotnet publish -c Release -r win-x64" | ||
${CONTAINER_RUNTIME} cp runingenie-build:/app/bin ./bin | ||
${CONTAINER_RUNTIME} rm runingenie-build | ||
#${CONTAINER_RUNTIME} rmi dotnet-build # this forces a rebuild of the toolchain each time |
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,6 @@ | ||
FROM registry.fedoraproject.org/fedora:latest | ||
WORKDIR /app | ||
|
||
RUN dnf install -y dotnet-sdk-5.0 | ||
|
||
COPY . . |