Reorder setup
This commit is contained in:
parent
8ec4774f44
commit
b70a8b5d94
|
@ -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:
|
||||
|
|
14
Dockerfile
14
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user