This commit is contained in:
Yanyutin753
2024-02-18 09:55:11 +08:00
2 changed files with 2 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ jobs:
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile/Dockerfile.jar
file: ./Dockerfiles/Dockerfile.jar
push: true
tags: |
yangclivia/gpt4-copilot-java:${{ steps.tag_name.outputs.tag }}-jar

View File

@@ -8,10 +8,7 @@ LABEL maintainer="Yanyutin753"
USER root
# 复制JAR文件到容器的/app目录下
COPY /target/gpt-4-copilot-0.0.4.jar /app/app.jar
# 切换到/app目录
WORKDIR /app
COPY /target/gpt-4-copilot-0.0.4.jar app.jar
# 声明服务运行在8081端口
EXPOSE 8081