2026-09-05 08:12:30 +03:30
|
|
|
FROM python:3.12-slim
|
|
|
|
|
|
|
|
|
|
ENV PYTHONUNBUFFERED=1 \
|
|
|
|
|
PYTHONDONTWRITEBYTECODE=1 \
|
|
|
|
|
PIP_NO_CACHE_DIR=1
|
|
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
|
&& apt-get install -y --no-install-recommends curl \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
COPY requirements.txt .
|
|
|
|
|
RUN pip install -r requirements.txt
|
2026-10-12 20:09:38 +03:30
|
|
|
RUN opentelemetry-bootstrap -a install
|
2026-09-05 08:12:30 +03:30
|
|
|
|
|
|
|
|
COPY common ./common
|
|
|
|
|
COPY services ./services
|
|
|
|
|
COPY db ./db
|
|
|
|
|
COPY scripts ./scripts
|
|
|
|
|
|
|
|
|
|
# CMD differs per service -- see docker-compose.yml.
|
|
|
|
|
CMD ["python", "-c", "print('no default command: set one in docker-compose.yml')"]
|