mirror of
https://github.com/thib8956/nginx-proxy
synced 2026-11-16 17:27:31 +00:00
fix: Properly detect pytest running via container
The original `/.dockerenv` approach is no longer valid, and context wise we're only using this for the test suite, so using an ENV in that container is a better solution.
This commit is contained in:
1 parent
7c02ff637a
commit
93c04dce8d
2 files changed
+7
-5
No files matched your search
@@ -1,5 +1,7 @@
|
||||
FROM python:3.9
|
||||
|
||||
ENV PYTEST_RUNNING_IN_CONTAINER=1
|
||||
|
||||
COPY python-requirements.txt /requirements.txt
|
||||
RUN pip install -r /requirements.txt
|
||||
|
||||
|
||||
Reference in new issue
Block a user