chore [P-261]: попытка

This commit is contained in:
Nukeap committed 2025-06-04 08:45:30 +03:00
1 parent 4cb0d47d23
commit 692ad41b6d
14 files changed
+111 -25

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ RUN dos2unix /script/backend-entrypoint.sh && chmod 777 /script/backend-entrypoi
python -m pip install --no-cache-dir poetry \
&& poetry config virtualenvs.in-project true \
&& poetry install --no-interaction --no-ansi
--without dev,test
# Устанавливаем зависимости
# RUN python -m venv env
# RUN pip install --no-cache-dir -r r.txt
+5 -9
View File
@@ -1,6 +1,3 @@
FROM alpine:latest
FROM node:lts-alpine as bstage
ARG SOURCE_DIRFRONT
@@ -30,21 +27,20 @@ WORKDIR /back
ARG SOURCE_DIR
ENV SOURCE_DIR=${SOURCE_DIR}
RUN apt-get update && apt-get install -y --no-install-recommends \
RUN apt-get update && apt-get install -y --no-install-recommends rsync \
libmariadb-dev-compat \
build-essential \
dos2unix \
build-essential \
pkg-config && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY --from=bstage /app/dist /app/front
COPY --from=bstage /app/dist /app/dist
# Копируем файлы зависимостей в контейнер
COPY ${SOURCE_DIR}/pyproject.toml ${SOURCE_DIR}/README.md ./
COPY docker/entries/backend-entrypoint.sh /script/backend-entrypoint.sh
RUN dos2unix /script/backend-entrypoint.sh && chmod 777 /script/backend-entrypoint.sh && \
python -m pip install --upgrade pip --no-cache-dir poetry \
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
##--without dev,test