mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
Address Issues in build (#180)
- CIS-DI-0001 - CIS-DI-0006 - CIS-DI-0008 - DKL-LI-0003
This commit is contained in:
1
src/torrent-ingestor/.dockerignore
Normal file
1
src/torrent-ingestor/.dockerignore
Normal file
@@ -0,0 +1 @@
|
||||
Dockerfile
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user