mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-04 06:03:18 +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
|
||||
if: always()
|
||||
run: |
|
||||
docker system prune -a -f --volumes \
|
||||
&& docker container prune -f \
|
||||
&& docker image prune -f \
|
||||
&& docker volume prune -f
|
||||
docker system prune -a -f --volumes
|
||||
- name: Check disk space
|
||||
run: df -h
|
||||
- name: Checkout
|
||||
@ -50,9 +47,13 @@ jobs:
|
||||
- name: Push image
|
||||
run: |
|
||||
docker push ${{ env.IMAGE }}:latest
|
||||
- name: Check disk space
|
||||
run: df -h
|
||||
- name: Cleanup Docker resources
|
||||
if: always()
|
||||
run: docker system prune -a -f --volumes
|
||||
- name: Check disk space
|
||||
run: df -h
|
||||
|
||||
test:
|
||||
name: Test Docker Image
|
||||
|
||||
@ -21,14 +21,13 @@ RUN apt-get update \
|
||||
|
||||
|
||||
# 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
|
||||
COPY ./Pipfile .
|
||||
RUN pipenv install --deploy --dev
|
||||
|
||||
# add 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 black --exclude=migrations . --check
|
||||
# RUN pipenv run isort . --check-only
|
||||
@ -67,7 +66,6 @@ RUN apt-get update \
|
||||
|
||||
# install python dependencies
|
||||
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 pipenv install --deploy --dev
|
||||
RUN pipenv run pip install "uvicorn[standard]==0.26.0"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user