добавлен src/altlinux

This commit is contained in:
2024-08-11 09:13:30 +03:00
parent e2f5e8daba
commit 067fa52719
11 changed files with 2304 additions and 0 deletions

23
src/altlinux/Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM python:3.12-slim as builder
RUN pip install poetry
RUN mkdir -p /app
COPY . /app
# Фикс
RUN sed -i '/ocab-core = {/{s/, develop = true//}' /app/src/altlinux/pyproject.toml && \
sed -i '/ocab-modules = {/{s/, develop = true//}' /app/src/altlinux/pyproject.toml && \
sed -i '/ocab-core = {/{s/, develop = true//}' /app/src/ocab_modules/pyproject.toml
WORKDIR /app/src/altlinux
RUN poetry lock && poetry install
FROM python:3.12-slim as base
COPY --from=builder /app/src/altlinux /app
WORKDIR /app
ENV PATH="/app/.venv/bin:$PATH"
CMD ["python", "-m", "altlinux"]