FROM mcr.microsoft.com/dotnet/sdk:5.0-focal AS build-env
WORKDIR /app
#Copy Source cpde files
COPY . ./
# Restore
RUN dotnet restore --ignore-failed-sources ./src/Cyberlogic.Hermes.WebApi/*proj
# Publish
RUN dotnet publish ./src/Cyberlogic.Hermes.WebApi/*proj -c Release -o ./publish --no-restore
This file contains hidden or 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
#!/bin/bash | |
#variables | |
dirname=$1 | |
base_name="$(basename $dirname)" | |
APP_NAME="$(echo $base_name | tr '[:lower:]' '[:upper:]')" | |
#folders | |
mkdir -p $dirname/app/controllers | |
mkdir -p $dirname/app/tasks |