clean
This commit is contained in:
parent
2443e727bd
commit
02bb4fae16
@ -2,16 +2,12 @@ FROM python:3.12-alpine AS base
|
|||||||
|
|
||||||
WORKDIR /backend
|
WORKDIR /backend
|
||||||
|
|
||||||
# README.md needed to hatchling build
|
COPY pyproject.toml requirements.lock README.md /backend/
|
||||||
COPY pyproject.toml requirements.lock README.md .
|
|
||||||
RUN pip install uv --no-cache
|
RUN pip install uv --no-cache
|
||||||
RUN uv pip install --no-cache --system -r requirements.lock
|
RUN uv pip install --no-cache --system -r requirements.lock
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
FROM base AS dev
|
|
||||||
CMD ["granian", "--interface", "asgi", "src/app.py", "--reload", "--host", "0.0.0.0"]
|
|
||||||
|
|
||||||
FROM base AS prod
|
|
||||||
CMD ["granian", "--interface", "asgi", "src/app.py", "--host", "0.0.0.0"]
|
CMD ["granian", "--interface", "asgi", "src/app.py", "--host", "0.0.0.0"]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user