CI update

added
Docker on tag
Autotest on mergerequest to main
This commit is contained in:
2026-09-16 20:17:27 +03:00
parent 250ad25df4
commit 762f36beab
11 changed files with 352 additions and 9 deletions

48
Dockerfile Normal file
View File

@@ -0,0 +1,48 @@
# =========================
# Base image
# =========================
ARG PYTHON_VERSION=3.11
FROM python:${PYTHON_VERSION}-slim
# =========================
# Python env
# =========================
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PIP_NO_CACHE_DIR=1
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
# =========================
# Application directory
# =========================
WORKDIR /app
# =========================
# Dependencies
# =========================
COPY req.txt ./req.txt
RUN python -m pip install --upgrade pip \
&& python -m pip install -r req.txt
# =========================
# Application
# =========================
COPY src/ ./src/
# =========================
# Startup
# =========================
CMD ["python", "src/main.py"]