CI update
added Docker on tag Autotest on mergerequest to main
This commit is contained in:
48
Dockerfile
Normal file
48
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user