Merge pull request 'use pyproject.toml to control deps' (#1) from dev-gitea into master
Reviewed-on: #1
This commit is contained in:
commit
fd26197e70
@ -39,10 +39,10 @@ ENV PATH="${PATH}:/root/.local/bin" \
|
|||||||
PIP_DEFAULT_TIMEOUT=100
|
PIP_DEFAULT_TIMEOUT=100
|
||||||
|
|
||||||
# copy project files
|
# copy project files
|
||||||
COPY --chown=root:root requirements.txt main.py /app/ -i https://pypi.tuna.tsinghua.edu.cn/simple
|
COPY --chown=root:root pyproject.toml main.py /app/
|
||||||
|
|
||||||
# install dependencies
|
# install dependencies
|
||||||
RUN python -m pip install /app/
|
RUN python -m pip install /app/ -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||||
|
|
||||||
# copy tests
|
# copy tests
|
||||||
COPY --chown=root:root tests /app/tests/
|
COPY --chown=root:root tests /app/tests/
|
||||||
|
@ -39,10 +39,10 @@ ENV PATH="${PATH}:/root/.local/bin" \
|
|||||||
PIP_DEFAULT_TIMEOUT=100
|
PIP_DEFAULT_TIMEOUT=100
|
||||||
|
|
||||||
# copy project files
|
# copy project files
|
||||||
COPY --chown=root:root requirements.txt main.py /app/
|
COPY --chown=root:root pyproject.toml main.py /app/
|
||||||
|
|
||||||
# install dependencies
|
# install dependencies
|
||||||
RUN python -m pip install -r /app/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
RUN python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||||
|
|
||||||
# execute program
|
# execute program
|
||||||
CMD python /app/main.py
|
CMD python /app/main.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user