From 50b11efd8086e69b329e708a171d64d2515d13a2 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sat, 1 Mar 2025 01:02:53 -0500 Subject: [PATCH] Retry build with new buildx release and dockerfile changes --- .gitea/workflows/{build.yml.bak => build.yml} | 6 +++--- Dockerfile | 7 ++----- 2 files changed, 5 insertions(+), 8 deletions(-) rename .gitea/workflows/{build.yml.bak => build.yml} (93%) diff --git a/.gitea/workflows/build.yml.bak b/.gitea/workflows/build.yml similarity index 93% rename from .gitea/workflows/build.yml.bak rename to .gitea/workflows/build.yml index b4d5e6a..c84a1c5 100644 --- a/.gitea/workflows/build.yml.bak +++ b/.gitea/workflows/build.yml @@ -32,8 +32,8 @@ jobs: uses: docker/login-action@v3 with: registry: git.vpn.cusano.net # replace it with your local IP - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + username: ${{ secrets.GIT_REPO_USERNAME }} + password: ${{ secrets.GIT_REPO_PASSWORD }} - name: Get Meta id: meta @@ -52,7 +52,7 @@ jobs: context: . file: ./Dockerfile platforms: | - linux/amd64 + linux/arm4 push: true tags: | # replace it with your local IP and tags git.vpn.cusano.net/${{ vars.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}/${{ env.CONTAINER_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} diff --git a/Dockerfile b/Dockerfile index 7f10fa8..3f33ddd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ENV DEBIAN_FRONTEND=noninteractive # Install system dependencies RUN apt-get update && \ - apt-get install -y --no-install-recommends libc-bin apt-transport-https && \ + apt-get install -y --no-install-recommends libc-bin apt-transport-https tzdata && \ apt-get install -y --no-install-recommends git \ curl \ python3 \ @@ -63,8 +63,5 @@ WORKDIR /app # Copy the rest of the directory contents into the container at /app COPY ./app /app -# Copy the pre-built opus libraries -COPY ./opus /app/opus - # Run the node script -ENTRYPOINT ["uvicorn", "bot:app", "--host", "0.0.0.0", "--port", "8001", "--reload"] \ No newline at end of file +ENTRYPOINT ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8001", "--reload"] \ No newline at end of file