mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-09 00:43:33 +08:00
removed and add api to dockerfile
This commit is contained in:
parent
9b3f4f8bfd
commit
57802e0f41
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -37,7 +37,6 @@ jobs:
|
|||||||
- IMAGE_NAME: backend-aimingmedai
|
- IMAGE_NAME: backend-aimingmedai
|
||||||
BUILD_CONTEXT: ./app/backend
|
BUILD_CONTEXT: ./app/backend
|
||||||
DOCKERFILE: ./app/backend/Dockerfile.prod
|
DOCKERFILE: ./app/backend/Dockerfile.prod
|
||||||
ARGS: "--build-arg ENVIRONMENT=dev --build-arg TESTING=1 --build-arg DEEPSEEK_API_KEY=sk-XXXXXXXXXX --build-arg TAVILY_API_KEY=tvly-dev-wXXXXXX"
|
|
||||||
- IMAGE_NAME: frontend-aimingmedai
|
- IMAGE_NAME: frontend-aimingmedai
|
||||||
BUILD_CONTEXT: ./app/frontend
|
BUILD_CONTEXT: ./app/frontend
|
||||||
DOCKERFILE: ./app/frontend/Dockerfile.test
|
DOCKERFILE: ./app/frontend/Dockerfile.test
|
||||||
@ -55,7 +54,6 @@ jobs:
|
|||||||
image_name: ${{ matrix.image_config.IMAGE_NAME }}
|
image_name: ${{ matrix.image_config.IMAGE_NAME }}
|
||||||
build_context: ${{ matrix.image_config.BUILD_CONTEXT }}
|
build_context: ${{ matrix.image_config.BUILD_CONTEXT }}
|
||||||
dockerfile: ${{ matrix.image_config.DOCKERFILE }}
|
dockerfile: ${{ matrix.image_config.DOCKERFILE }}
|
||||||
args: ${{ matrix.image_config.ARGS }}
|
|
||||||
build_id: ${{ github.run_id }}
|
build_id: ${{ github.run_id }}
|
||||||
commit_sha: ${{ github.sha }}
|
commit_sha: ${{ github.sha }}
|
||||||
|
|
||||||
|
|||||||
4
.github/workflows/template_build.yml
vendored
4
.github/workflows/template_build.yml
vendored
@ -25,9 +25,6 @@ on:
|
|||||||
commit_sha:
|
commit_sha:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
args:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -94,7 +91,6 @@ jobs:
|
|||||||
-t ${{ steps.tags.outputs.image_repo_path }}:${{ steps.tags.outputs.tag_build_id }} \
|
-t ${{ steps.tags.outputs.image_repo_path }}:${{ steps.tags.outputs.tag_build_id }} \
|
||||||
-t ${{ steps.tags.outputs.image_repo_path }}:${{ steps.tags.outputs.tag_commit_sha }} \
|
-t ${{ steps.tags.outputs.image_repo_path }}:${{ steps.tags.outputs.tag_commit_sha }} \
|
||||||
-t ${{ steps.tags.outputs.image_repo_path }}:latest \
|
-t ${{ steps.tags.outputs.image_repo_path }}:latest \
|
||||||
${{ inputs.args }} \
|
|
||||||
${{ inputs.build_context }}
|
${{ inputs.build_context }}
|
||||||
|
|
||||||
- name: Push Final Image Tags
|
- name: Push Final Image Tags
|
||||||
|
|||||||
@ -13,6 +13,8 @@ ENV PYTHONDONTWRITEBYTECODE=1
|
|||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
ENV ENVIRONMENT=dev
|
ENV ENVIRONMENT=dev
|
||||||
ENV TESTING=1
|
ENV TESTING=1
|
||||||
|
ENV DEEPSEEK_API_KEY=sk-XXXXXXXXXX
|
||||||
|
ENV TAVILY_API_KEY=tvly-dev-wXXXXXX
|
||||||
|
|
||||||
# install python dependencies
|
# install python dependencies
|
||||||
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv && rm -rf ~/.cache/pip
|
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv && rm -rf ~/.cache/pip
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user