CviLux_fe/scripts/11.build-image.bat

17 lines
627 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@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% ../