diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3a68dd1..b59c00b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,43 +1,43 @@ -name: Build -on: - push: +# name: Build +# on: +# push: -jobs: -# Build job. Builds app for Android with Buildozer - build-android: - name: Build for Android - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 +# jobs: +# # Build job. Builds app for Android with Buildozer +# build-android: +# name: Build for Android +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v4 - - name: Checkout - uses: actions/checkout@v2 +# - name: Checkout +# uses: actions/checkout@v2 - - name: Upgrade Cython - uses: actions/setup-python@v2 - with: - python-version: '3.10' +# - name: Upgrade Cython +# uses: actions/setup-python@v2 +# with: +# python-version: '3.10' - - name: Setup Java JDK - uses: actions/setup-java@v4.2.1 - with: - distribution: 'temurin' - java-version: "17" +# - name: Setup Java JDK +# uses: actions/setup-java@v4.2.1 +# with: +# distribution: 'temurin' +# java-version: "17" - - name: Build with Buildozer - run: | - python -m pip install --upgrade buildozer Cython==0.29.33 virtualenv - export PATH=$PATH:~/.local/bin/ - export APP_ANDROID_ACCEPT_SDK_LICENSE=1 - export BUILDOZER_WARN_ON_ROOT=0 - sudo apt update - sudo apt install -y git zip unzip openjdk-17-jdk python3-pip autoconf libtool pkg-config zlib1g-dev libncurses5-dev libncursesw5-dev libtinfo5 cmake libffi-dev libssl-dev - cd ${{ github.workspace }} - buildozer android debug - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: package - path: bin/*.apk - # path: ${{ steps.buildozer.outputs.filename }} \ No newline at end of file +# - name: Build with Buildozer +# run: | +# python -m pip install --upgrade buildozer Cython==0.29.33 virtualenv +# export PATH=$PATH:~/.local/bin/ +# export APP_ANDROID_ACCEPT_SDK_LICENSE=1 +# export BUILDOZER_WARN_ON_ROOT=0 +# sudo apt update +# sudo apt install -y git zip unzip openjdk-17-jdk python3-pip autoconf libtool pkg-config zlib1g-dev libncurses5-dev libncursesw5-dev libtinfo5 cmake libffi-dev libssl-dev +# cd ${{ github.workspace }} +# buildozer android debug +# - name: Upload artifacts +# uses: actions/upload-artifact@v2 +# with: +# name: package +# path: bin/*.apk +# # path: ${{ steps.buildozer.outputs.filename }} \ No newline at end of file diff --git a/core/Dockerfile b/core/Dockerfile index 7faa3bf..3771b75 100644 --- a/core/Dockerfile +++ b/core/Dockerfile @@ -11,6 +11,8 @@ ENV PATH /home/pn/.cargo/bin:$PATH RUN pip install --upgrade pip RUN pip install -r requirements.txt +ENV PYTHONPATH "${PYTHONPATH}:/home/pn/app/" + EXPOSE 5000 ENV FLASK_APP=/home/pn/app/app.py