diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index 0fde922..ca18fb4 100644 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -42,3 +42,8 @@ jobs: context: . push: true tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + + - name: Trigger deploy on Render + uses: distributhor/workflow-webhook@v3 + with: + webhook_url: ${{ secrets.RENDER_WEBHOOK }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 5d36943..ae2e319 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.access.redhat.com/ubi9/ubi:9.3 +FROM ubuntu:22.04 WORKDIR /app @@ -6,7 +6,9 @@ ENV PYTHON_VERSION=3.9 COPY . . -RUN dnf install -y python3.9 python3-pip +RUN apt update -y && apt install -y software-properties-common && add-apt-repository ppa:deadsnakes/ppa + +RUN ln -fs //usr/share/zoneinfo/Europe/Rome /etc/localtime && apt install -y python3.9-distutils python3.9 python3-pip RUN python3.9 -m pip install -r requirements.txt --extra-index-url https://google-coral.github.io/py-repo/