17 lines
627 B
Batchfile
17 lines
627 B
Batchfile
@echo off
|
||
cd /d "%~dp0"
|
||
setlocal enabledelayedexpansion
|
||
|
||
REM === 讀取版本(手動管理)================
|
||
REM 注意:版本號請手動更新於 scripts\version.txt(或直接編輯此目錄下的 version.txt),
|
||
REM 本腳本不再自動遞增版本,避免 build 時自動變動 tag。
|
||
set /p VERSION=<version.txt
|
||
REM ====================================
|
||
|
||
REM === 參數 ===========================
|
||
set IMAGE_NAME=cvilux-fe
|
||
REM ====================================
|
||
|
||
REM === 流程 ===========================
|
||
docker rmi %IMAGE_NAME%:%VERSION%
|
||
docker build --no-cache -f ../Dockerfile -t %IMAGE_NAME%:%VERSION% ../ |