chore [P-0]: сhore
This commit is contained in:
1 parent
d13d02fadb
commit
2e48e08b83
389 files changed
+17779
-11492
No files matched your search
Regular → Executable
+11
-18
@@ -1,4 +1,4 @@
|
||||
FROM python:3.10.13-slim AS builderstage
|
||||
FROM python:3.13.13-slim AS builderstage
|
||||
|
||||
WORKDIR /back
|
||||
|
||||
@@ -11,27 +11,20 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
pkg-config && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ARG APT_PROXY=""
|
||||
ARG PIP_INDEX_URL
|
||||
ENV POETRY_NO_INTERACTION=1
|
||||
ENV PIP_TRUSTED_HOST=pip.local
|
||||
|
||||
# Копируем файлы зависимостей в контейнер
|
||||
COPY ${SOURCE_DIR}/pyproject.toml ${SOURCE_DIR}/README.md ./
|
||||
COPY ${SOURCE_DIR}/pyproject.toml ${SOURCE_DIR}/poetry.toml ${SOURCE_DIR}/poetry.lock ${SOURCE_DIR}/README.md ./
|
||||
COPY docker/entries/backend-entrypoint.sh /script/backend-entrypoint.sh
|
||||
|
||||
RUN chmod 777 /script/backend-entrypoint.sh && \
|
||||
python -m pip install --no-cache-dir poetry \
|
||||
&& poetry config virtualenvs.in-project true \
|
||||
&& poetry install --no-interaction --no-ansi
|
||||
pip install --index-url https://${PIP_INDEX_URL}/root/pypi/+simple/ --trusted-host ${PIP_INDEX_URL} --no-cache-dir --upgrade pip && \
|
||||
pip install --index-url https://${PIP_INDEX_URL}/root/pypi/+simple/ --trusted-host ${PIP_INDEX_URL} --no-cache-dir poetry && \
|
||||
# Убираем возможный старый venv из кэша
|
||||
poetry install --with dev --no-interaction --no-ansi
|
||||
|
||||
# Устанавливаем зависимости
|
||||
# RUN python -m venv env
|
||||
# RUN pip install --no-cache-dir -r r.txt
|
||||
|
||||
|
||||
# Копируем все файлы проекта в контейнер
|
||||
# COPY ${SOURCE_DIR} .
|
||||
# FROM python:3.10.13-slim
|
||||
# RUN python -m pip install --no-cache-dir poetry
|
||||
|
||||
# COPY --from=builderstage /script /script
|
||||
# WORKDIR /back
|
||||
EXPOSE 8000
|
||||
#CMD ["tail", "-f", "/dev/null"]
|
||||
Reference in new issue
Block a user