Skip to content

Commit 02a76b1

Browse files
authored
Match casing of AS and FROM in Dockerfile
1 parent a21ee4c commit 02a76b1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# The devcontainer should use the developer target and run as root with podman
22
# or docker with user namespaces.
33
ARG 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
77
RUN apt-get update && apt-get install -y --no-install-recommends \

template/Dockerfile.jinja

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# The devcontainer should use the developer target and run as root with podman
22
# or docker with user namespaces.
33
ARG 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
77
RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -13,13 +13,13 @@ RUN python -m venv /venv
1313
ENV 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
1717
COPY . /context
1818
WORKDIR /context
1919
RUN 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
2424
COPY --from=build /venv/ /venv/
2525
ENV PATH=/venv/bin:$PATH

0 commit comments

Comments
 (0)