mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-09 00:43:33 +08:00
remove more
This commit is contained in:
parent
81e1ddc1c3
commit
4c503415a6
9
.github/workflows/develop.yml
vendored
9
.github/workflows/develop.yml
vendored
@ -21,10 +21,7 @@ jobs:
|
|||||||
- name: Cleanup Docker resources
|
- name: Cleanup Docker resources
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
docker system prune -a -f --volumes \
|
docker system prune -a -f --volumes
|
||||||
&& docker container prune -f \
|
|
||||||
&& docker image prune -f \
|
|
||||||
&& docker volume prune -f
|
|
||||||
- name: Check disk space
|
- name: Check disk space
|
||||||
run: df -h
|
run: df -h
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -50,9 +47,13 @@ jobs:
|
|||||||
- name: Push image
|
- name: Push image
|
||||||
run: |
|
run: |
|
||||||
docker push ${{ env.IMAGE }}:latest
|
docker push ${{ env.IMAGE }}:latest
|
||||||
|
- name: Check disk space
|
||||||
|
run: df -h
|
||||||
- name: Cleanup Docker resources
|
- name: Cleanup Docker resources
|
||||||
if: always()
|
if: always()
|
||||||
run: docker system prune -a -f --volumes
|
run: docker system prune -a -f --volumes
|
||||||
|
- name: Check disk space
|
||||||
|
run: df -h
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Test Docker Image
|
name: Test Docker Image
|
||||||
|
|||||||
@ -21,14 +21,13 @@ RUN apt-get update \
|
|||||||
|
|
||||||
|
|
||||||
# install python dependencies
|
# install python dependencies
|
||||||
RUN pip install --upgrade pip setuptools wheel -i https://pypi.tuna.tsinghua.edu.cn/simple && rm -rf ~/.cache/pip
|
|
||||||
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
|
||||||
COPY ./Pipfile .
|
COPY ./Pipfile .
|
||||||
RUN pipenv install --deploy --dev
|
RUN pipenv install --deploy --dev
|
||||||
|
|
||||||
# add app
|
# add app
|
||||||
COPY . /usr/src/app
|
COPY . /usr/src/app
|
||||||
RUN pipenv run pip install black==23.12.1 flake8==7.0.0 isort==5.13.2
|
# RUN pipenv run pip install black==23.12.1 flake8==7.0.0 isort==5.13.2
|
||||||
# RUN pipenv run flake8 .
|
# RUN pipenv run flake8 .
|
||||||
# RUN pipenv run black --exclude=migrations . --check
|
# RUN pipenv run black --exclude=migrations . --check
|
||||||
# RUN pipenv run isort . --check-only
|
# RUN pipenv run isort . --check-only
|
||||||
@ -67,7 +66,6 @@ RUN apt-get update \
|
|||||||
|
|
||||||
# install python dependencies
|
# install python dependencies
|
||||||
COPY --from=builder /usr/src/app/Pipfile .
|
COPY --from=builder /usr/src/app/Pipfile .
|
||||||
RUN pip install --upgrade pip setuptools wheel -i https://pypi.tuna.tsinghua.edu.cn/simple && rm -rf ~/.cache/pip
|
|
||||||
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
|
||||||
RUN pipenv install --deploy --dev
|
RUN pipenv install --deploy --dev
|
||||||
RUN pipenv run pip install "uvicorn[standard]==0.26.0"
|
RUN pipenv run pip install "uvicorn[standard]==0.26.0"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user