perf: 支持识别docker环境

This commit is contained in:
RockChinQ
2024-03-07 15:55:02 +08:00
parent 2471c5bf0f
commit 95784debbf
3 changed files with 9 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ COPY . .
RUN apt update \
&& apt install gcc -y \
&& python -m pip install -r requirements.txt
&& python -m pip install -r requirements.txt \
&& touch /.dockerenv
CMD [ "python", "main.py" ]