Skip to content

Commit

Permalink
feat(dockerfile): use the newest pip (#1101)
Browse files Browse the repository at this point in the history
  • Loading branch information
wklken authored Nov 4, 2024
1 parent 8fa766f commit 6df398e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions src/dashboard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ RUN pip config set global.index-url "${PYPI}"

WORKDIR /app
ADD build/requirements.txt /app/requirements.txt
# while the celery 4.4.7 can't be installed via pip >=24.x
# RUN pip install --upgrade pip
RUN pip install pip==23.0.1
RUN pip install --upgrade pip
RUN pip install -r requirements.txt

ADD build /app
Expand Down
2 changes: 0 additions & 2 deletions src/dashboard/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ _clean_build_dir:
.PHONY: _build_image
_build_image:
$(eval name ?= apigateway-dashboard)
$(eval pypi ?= "https://mirrors.cloud.tencent.com/pypi/simple/")
docker build \
--no-cache \
-t "${name}" \
Expand All @@ -163,7 +162,6 @@ image-te:
dev-ee-image:
editionctl activate --linker-type copy EE
make _build_dir
$(eval pypi ?= "https://mirrors.cloud.tencent.com/pypi/simple/")
docker build \
-t "apigateway-dashboard:development" \
--build-arg PYPI="${pypi}" \
Expand Down

0 comments on commit 6df398e

Please sign in to comment.