✨(summary) add development stage to summary Docker image for hot reload
Introduce new Docker stage enabling hot reload during active API development to eliminate rebuild cycles and improve developer workflow efficiency.
This commit is contained in:
committed by
aleb_the_flash
parent
64fca531fa
commit
1b3b9ff858
@@ -8,6 +8,14 @@ COPY pyproject.toml .
|
||||
|
||||
RUN pip3 install --no-cache-dir .
|
||||
|
||||
FROM base AS development
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
RUN pip3 install --no-cache-dir -e ".[dev]" || pip3 install --no-cache-dir -e .
|
||||
|
||||
CMD ["uvicorn", "summary.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
||||
|
||||
FROM base AS production
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user