From b70a8b5d942e66de83f3366391fadaa1c5136a6f Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Thu, 23 May 2024 00:03:42 +0200 Subject: [PATCH] Reorder setup --- .gitea/workflows/container.yml | 3 +++ Dockerfile | 14 +++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/container.yml b/.gitea/workflows/container.yml index 3e7bb44..0a7a262 100644 --- a/.gitea/workflows/container.yml +++ b/.gitea/workflows/container.yml @@ -11,6 +11,9 @@ jobs: secrets: PIPY_REPO_USER: ${{ secrets.PIPY_REPO_USER }} PIPY_REPO_PASS: ${{ secrets.PIPY_REPO_PASS }} + with: + REGISTRY_DOMAIN: gitfub.space + REGISTRY_ORGANIZATION: jmaasoft Container-Package: uses: jmaa/workflows/.gitea/workflows/container.yaml@v6.21 secrets: diff --git a/Dockerfile b/Dockerfile index 27c6fe5..0b6c9ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,16 +12,16 @@ RUN adduser -S personal_data && chown personal_data /personal_data #debian: RUN useradd -m -r personal_data && chown personal_data /personal_data # Requirements -ADD requirements.txt requirements.txt -RUN pip install --no-cache-dir -r requirements.txt +ADD setup.py setup.py +ADD README.md README.md +ADD personal_data personal_data + +RUN pip install --no-cache-dir . --break-system-packages + +USER personal_data # Tracability ARG GIT_HASH ENV GIT_HASH=${GIT_HASH:-dev} -# Code -ADD personal_data personal_data - -USER personal_data - CMD python -m personal_data