Skip to content

Commit

Permalink
Address Issues in build (#180)
Browse files Browse the repository at this point in the history
- CIS-DI-0001
- CIS-DI-0006
- CIS-DI-0008
- DKL-LI-0003
  • Loading branch information
iPromKnight authored Mar 28, 2024
1 parent baec045 commit bb260d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/torrent-ingestor/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Dockerfile
6 changes: 6 additions & 0 deletions src/torrent-ingestor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit bb260d7

Please sign in to comment.