Pin dependency versions and add constraints.txt
Exact versions for direct dependencies, full pip freeze of the tested image as constraints, both Dockerfiles install with -c constraints.txt. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bcf8156085
commit
c99665542a
8 files changed
+89
-13
No files matched your search
+2
-2
@@ -6,8 +6,8 @@ ENV PYTHONUNBUFFERED=1 \
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY requirements.txt constraints.txt ./
|
||||
RUN pip install --no-cache-dir -c constraints.txt -r requirements.txt
|
||||
|
||||
COPY api_server.py cidr_collector.py collector_daemon.py db.py formatters.py storage.py healthcheck.py ./
|
||||
|
||||
|
||||
Reference in new issue
Block a user