This commit is contained in:
1 parent
d194777812
commit
1eaee98bca
1 file changed
+1
-16
+1
-16
@@ -1,25 +1,10 @@
|
||||
#
|
||||
FROM python:3.10 as requirements-stage
|
||||
|
||||
#
|
||||
WORKDIR /tmp
|
||||
|
||||
#
|
||||
RUN pip install poetry -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
#
|
||||
COPY ./pyproject.toml ./poetry.lock* /tmp/
|
||||
|
||||
#
|
||||
RUN poetry export -f requirements.txt --output requirements.txt --without-hashes
|
||||
|
||||
#
|
||||
FROM python:3.10
|
||||
|
||||
#
|
||||
WORKDIR /code
|
||||
|
||||
#
|
||||
COPY --from=requirements-stage /tmp/requirements.txt /code/requirements.txt
|
||||
COPY ./requirements.txt /code/requirements.txt
|
||||
|
||||
#
|
||||
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
|
||||
Reference in new issue
Block a user