Address Issues in build (#180)

- CIS-DI-0001
- CIS-DI-0006
- CIS-DI-0008
- DKL-LI-0003
This commit is contained in:
iPromKnight
2024-03-28 10:47:13 +00:00
committed by GitHub
parent baec0450bf
commit bb260d78d6
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1 @@
Dockerfile

View File

@@ -8,4 +8,10 @@ RUN poetry config virtualenvs.create false
COPY . /app
RUN poetry install --no-dev
RUN groupadd ingestor && useradd -g ingestor ingestor
USER ingestor
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
CMD pgrep -f python || exit 1
CMD ["python", "/app/torrent_ingestor/main.py"]