From 3a8efac5a701c78eff4a3bfdfe53d8493ce61e41 Mon Sep 17 00:00:00 2001 From: Maxime Date: Fri, 25 Oct 2024 11:27:04 +0200 Subject: [PATCH] ci: modifie dockerfile etl (000) --- .github/workflows/onisep.yml | 4 ++-- app/etl/docker/Dockerfile | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/onisep.yml b/.github/workflows/onisep.yml index 3c5b4d9cc..7bc537256 100644 --- a/.github/workflows/onisep.yml +++ b/.github/workflows/onisep.yml @@ -30,8 +30,8 @@ jobs: - name: Push changes to prod branch if: ${{ github.ref == 'refs/heads/prod' }} - run: git push --force-with-lease onisep HEAD:prod + run: git push --force onisep HEAD:prod - name: Push changes to demo branch if: ${{ github.ref == 'refs/heads/demo' }} - run: git push --force-with-lease onisep HEAD:integration && git push --force-with-lease onisep HEAD:uat && git push --force-with-lease onisep HEAD:preprod \ No newline at end of file + run: git push --force onisep HEAD:integration && git push --force onisep HEAD:uat && git push --force onisep HEAD:preprod \ No newline at end of file diff --git a/app/etl/docker/Dockerfile b/app/etl/docker/Dockerfile index 18fa84aaa..ea1b77380 100644 --- a/app/etl/docker/Dockerfile +++ b/app/etl/docker/Dockerfile @@ -26,5 +26,9 @@ COPY --from=build /usr/src/mps-etl.jar . # Exposed port EXPOSE 3000 +RUN apt-get update && apt-get install -y \ + git \ + && rm -rf /var/lib/apt/lists/* + # Set the command to run the application CMD ["java", "-jar", "mps-etl.jar"]