fix: 修正Dockerfile和Makefile中的可执行文件名称
将Dockerfile中的CMD命令和Makefile中的build-linux目标输出文件名称统一为'ppanel',确保容器运行时使用正确的可执行文件名称
This commit is contained in:
parent
bb5d6974fa
commit
c0e0d03431
@ -43,4 +43,4 @@ EXPOSE 8080
|
|||||||
|
|
||||||
# Specify entry point
|
# Specify entry point
|
||||||
ENTRYPOINT ["/app/ppanel"]
|
ENTRYPOINT ["/app/ppanel"]
|
||||||
CMD ["ppanel_api", "--config", "etc/ppanel.yaml"]
|
CMD ["ppanel", "--config", "etc/ppanel.yaml"]
|
||||||
2
Makefile
2
Makefile
@ -64,7 +64,7 @@ docker-run: # Publish docker image | 发布 docker 镜像
|
|||||||
|
|
||||||
.PHONY: build-linux
|
.PHONY: build-linux
|
||||||
build-linux: # Build project for Linux | 构建Linux下的可执行文件
|
build-linux: # Build project for Linux | 构建Linux下的可执行文件
|
||||||
GOOS=linux GOARCH=$(GOARCH) $(GOBUILD) -o $(SERVICE_STYLE)_$(PROJECT_BUILD_SUFFIX) $(SERVICE_STYLE).go
|
GOOS=linux GOARCH=$(GOARCH) $(GOBUILD) -o /app/ppanel $(SERVICE_STYLE).go
|
||||||
@echo "Build project for Linux successfully"
|
@echo "Build project for Linux successfully"
|
||||||
|
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
|
|||||||
@ -8,7 +8,7 @@ export DOMAIN=ppanel.kxsw.us
|
|||||||
export PROJECT_NAME=ppanel # 容器项目名称
|
export PROJECT_NAME=ppanel # 容器项目名称
|
||||||
export SERVICE_NAME=server # 容器服务名称
|
export SERVICE_NAME=server # 容器服务名称
|
||||||
export API_INNER_PORT=8080
|
export API_INNER_PORT=8080
|
||||||
export API_EXTERNAL_PORT=8080
|
export API_EXTERNAL_PORT=8070
|
||||||
|
|
||||||
# Container Repository
|
# Container Repository
|
||||||
export REGISTRY_URL=registry.kxsw.us # 本地 Docker Registry 地址,请根据实际情况修改
|
export REGISTRY_URL=registry.kxsw.us # 本地 Docker Registry 地址,请根据实际情况修改
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user