mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
Add files
This commit is contained in:
commit
e87c814068
266 changed files with 63938 additions and 0 deletions
15
scripts/server-build.ps1
Normal file
15
scripts/server-build.ps1
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
$repositoryRootDirectory = Join-Path -Path Get-Location -ChildPath '..'
|
||||
$packageJson = Get-Content -Path (Join-Path -Path $repositoryRootDirectory -ChildPath 'package.json') | ConvertFrom-Json
|
||||
|
||||
if (!packageJson.version) {
|
||||
throw 'package.json does not contain a version'
|
||||
}
|
||||
|
||||
$version = $packageJson.version
|
||||
$appName = $packageJson.name
|
||||
$dockerRepo = 'jeffvictorli'
|
||||
|
||||
|
||||
Write-Host "Building [${appname}:latest] & [${appName}:${version}]"
|
||||
|
||||
docker build -t "${dockerRepo}/${appName}:latest" -t "${dockerRepo}/${appName}:${version}" -f "${repositoryRootDirectory}/Dockerfile" .
|
||||
Loading…
Add table
Add a link
Reference in a new issue