Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from gbraad/master
Browse files Browse the repository at this point in the history
Add containerized build for Linux-based development
  • Loading branch information
cerebrate authored Feb 19, 2021
2 parents ef0af58 + 96b464f commit 5e15afb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
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
6 changes: 6 additions & 0 deletions images/Dockerfile.fedora
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 . .

0 comments on commit 5e15afb

Please sign in to comment.