chore [P-01]: предлинт
This commit is contained in:
1 parent
9f1423870d
commit
e186c0412b
12 files changed
+191
-3741
No files matched your search
+17
-8
@@ -1,29 +1,38 @@
|
||||
FROM python:3.10.13-slim
|
||||
FROM python:3.10.13-slim AS builderstage
|
||||
|
||||
WORKDIR /back
|
||||
|
||||
ARG SOURCE_DIR
|
||||
ENV SOURCE_DIR=${SOURCE_DIR}
|
||||
# Устанавливаем рабочую директорию
|
||||
RUN apt-get update && apt-get install -y \
|
||||
default-libmysqlclient-dev \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libmariadb-dev-compat \
|
||||
build-essential \
|
||||
dos2unix \
|
||||
pkg-config && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
# Копируем файлы зависимостей в контейнер
|
||||
COPY ${SOURCE_DIR}/r.txt .
|
||||
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 --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
|
||||
# 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
|
||||
COPY docker/entries/backend-entrypoint.sh /script/backend-entrypoint.sh
|
||||
RUN dos2unix /script/backend-entrypoint.sh && chmod 777 /script/backend-entrypoint.sh
|
||||
Reference in new issue
Block a user