File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11# The devcontainer should use the developer target and run as root with podman
22# or docker with user namespaces.
33ARG PYTHON_VERSION=3.11
4- FROM python:${PYTHON_VERSION} as developer
4+ FROM python:${PYTHON_VERSION} AS developer
55
66# Add any system dependencies for the developer/build environment here
77RUN apt-get update && apt-get install -y --no-install-recommends \
Original file line number Diff line number Diff line change 11# The devcontainer should use the developer target and run as root with podman
22# or docker with user namespaces.
33ARG PYTHON_VERSION=3.11
4- FROM python:${PYTHON_VERSION} as developer
4+ FROM python:${PYTHON_VERSION} AS developer
55
66# Add any system dependencies for the developer/build environment here
77RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -13,13 +13,13 @@ RUN python -m venv /venv
1313ENV PATH=/venv/bin:$PATH{% if docker %}
1414
1515# The build stage installs the context into the venv
16- FROM developer as build
16+ FROM developer AS build
1717COPY . /context
1818WORKDIR /context
1919RUN touch dev-requirements.txt && pip install -c dev-requirements.txt .
2020
2121# The runtime stage copies the built venv into a slim runtime container
22- FROM python:${PYTHON_VERSION}-slim as runtime
22+ FROM python:${PYTHON_VERSION}-slim AS runtime
2323# Add apt-get system dependecies for runtime here if needed
2424COPY --from=build /venv/ /venv/
2525ENV PATH=/venv/bin:$PATH
You can’t perform that action at this time.
0 commit comments