Skip to content

Commit

Permalink
move cli install to build step
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Nov 11, 2023
1 parent eb02546 commit cea53e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM golang:1.20

RUN apt update && apt install -y python3-pip

WORKDIR /srv/root

Expand All @@ -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"]
2 changes: 0 additions & 2 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cea53e3

Please sign in to comment.