chore [P-261]: попытка
This commit is contained in:
1 parent
4cb0d47d23
commit
692ad41b6d
14 files changed
+111
-25
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user