FROM python:3.11-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY app/ ./app/ ARG BUILD_SHA=dev ARG BUILD_TIME=local ENV BUILD_SHA=${BUILD_SHA} ENV BUILD_TIME=${BUILD_TIME} ENV PYTHONUNBUFFERED=1 ENV PORT=7030 EXPOSE 7030 CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-7030}"]