# syntax=docker/dockerfile:1.6

FROM python:3.11-slim AS base

ENV PYTHONDONTWRITEBYTECODE=1 \
    PYTHONUNBUFFERED=1 \
    PIP_NO_CACHE_DIR=1 \
    PROJECT_ROOT=/workspace

WORKDIR /workspace/services/config-service

COPY services/config-service/requirements.txt ./requirements.txt
RUN pip install --upgrade pip && \
    pip install --no-cache-dir -r requirements.txt

# 运行时通过挂载卷提供配置与源码
RUN mkdir -p /workspace/services/config-service

# 缺省入口由 docker-compose 提供


