From cea53e349addc91bf8830ee4cf4855f05f885379 Mon Sep 17 00:00:00 2001 From: cmyui Date: Sat, 11 Nov 2023 08:09:08 -0500 Subject: [PATCH] move cli install to build step --- Dockerfile | 4 +++- scripts/start.sh | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a850658..e8773ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,5 @@ FROM golang:1.20 -RUN apt update && apt install -y python3-pip WORKDIR /srv/root @@ -11,6 +10,9 @@ COPY . /srv/root RUN go build +RUN apt update && apt install -y python3-pip +RUN pip install --break-system-packages -i http://pypi2.akatsuki.gg/cmyui/dev akatsuki-cli + EXPOSE 80 CMD ["./scripts/start.sh"] diff --git a/scripts/start.sh b/scripts/start.sh index c7429b4..4f2d1d5 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -12,8 +12,6 @@ if [ -z "$APP_ENV" ]; then fi if [[ $PULL_SECRETS_FROM_VAULT -eq 1 ]]; then - # TODO: is there a better way to deal with this? - pip install --break-system-packages -i $PYPI_INDEX_URL akatsuki-cli # TODO: revert to $APP_ENV akatsuki vault get akatsuki-api production-k8s -o .env source .env