Fix FROM / AS casing
This commit is contained in:
parent
6da948ff33
commit
fa8d6b25b1
|
@ -1,5 +1,5 @@
|
|||
# `python-base` sets up all our shared environment variables
|
||||
FROM python:3.12-slim as python-base
|
||||
FROM python:3.12-slim AS python-base
|
||||
|
||||
# python
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
|
@ -32,7 +32,7 @@ ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
|
|||
|
||||
|
||||
# `builder-base` stage is used to build deps + create our virtual environment
|
||||
FROM python-base as builder-base
|
||||
FROM python-base AS builder-base
|
||||
RUN apt-get update \
|
||||
&& apt-get install --no-install-recommends -y \
|
||||
# deps for installing poetry
|
||||
|
@ -51,7 +51,7 @@ COPY poetry.lock pyproject.toml ./
|
|||
RUN poetry install
|
||||
|
||||
# `production` image used for runtime
|
||||
FROM python-base as production
|
||||
FROM python-base AS production
|
||||
ENV FASTAPI_ENV=production
|
||||
COPY --from=builder-base $PYSETUP_PATH $PYSETUP_PATH
|
||||
COPY alembic.ini /usr/src/
|
||||
|
|
Loading…
Reference in a new issue