From 84f4d7eedb6b93ec0faaa86383cf9f671a376f13 Mon Sep 17 00:00:00 2001 From: xizeyoupan <44920131+xizeyoupan@users.noreply.github.com> Date: Thu, 2 Feb 2023 17:50:13 +0800 Subject: [PATCH] add:arm --- .github/workflows/publish.yml | 7 +++++-- Dockerfile | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4caa7bf..e644912 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,12 +27,15 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ github.workspace }}/kinss + platforms: linux/amd64,linux/arm64 push: true - tags: ${{ secrets.DOCKERHUB_USERNAME }}/kinss:latest + tags: | + ${{ secrets.DOCKERHUB_USERNAME }}/kinss:latest + ${{ secrets.DOCKERHUB_USERNAME }}/kinss:1.1 - name: Depoly to flyio, using fly.toml uses: superfly/flyctl-actions@master env: FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} with: - args: "deploy ./kinss" \ No newline at end of file + args: "deploy ./kinss" diff --git a/Dockerfile b/Dockerfile index ae9f45a..b4db84c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,8 @@ FROM python:3.8.16 RUN mkdir /code COPY . /code -RUN pip install -r /code/requirements.txt +RUN python -m pip install -U --force-reinstall pip \ + && pip install -r /code/requirements.txt WORKDIR /code CMD ["python", "/code/app.py"] \ No newline at end of file