Skip to content

Commit

Permalink
Fix FROM as casing warning (#2449)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-martin authored Nov 3, 2024
1 parent 1f60e57 commit 70dad62
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ci/Dockerfile.debian
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Base Target to build and install all needed base configuration and packages. Specifie the needed platform with the docker '--platform XXX' option
ARG DEBIAN_CODENAME=bullseye
ARG BASE_TEST_IMAGE=test-code
FROM debian:${DEBIAN_CODENAME}-slim as base
FROM debian:${DEBIAN_CODENAME}-slim AS base
ARG DEBIAN_CODENAME

ENV DOCKER_RUNNING=true
Expand Down Expand Up @@ -34,7 +34,7 @@ RUN export DEBIAN_FRONTEND=noninteractive \
# ------

# Base Target for setting up the default user. user can be selected with the docker '--user YYY' option
FROM base as user
FROM base AS user
ARG USER=pi
ARG USER_GROUP=$USER

Expand All @@ -50,7 +50,7 @@ RUN groupadd --gid 1000 $USER_GROUP \
####### Code Targets #######

# Target for adding code from the repo. Set Default User
FROM user as code
FROM user AS code

COPY --chown=$USER:$USER_GROUP --chmod=770 . /code
WORKDIR /code
Expand All @@ -63,7 +63,7 @@ USER $USER
####### Test Targets #######

# Target for setting up an alternativ user 'hans:wurst'. user can be selected with the docker '--user YYY' option
FROM user as test-user
FROM user AS test-user

ENV TEST_USER_GROUP=test

Expand All @@ -79,7 +79,7 @@ RUN export USER_ALT=hans \


# Target for adding envs and scripts from the repo to test installation
FROM test-user as test-code
FROM test-user AS test-code
ARG GIT_BRANCH
ARG GIT_URL

Expand All @@ -104,7 +104,7 @@ COPY --chown=root:$TEST_USER_GROUP --chmod=770 scripts/installscripts/tests/*.sh


# Target for applying latest updates (should not be cached!)
FROM $BASE_TEST_IMAGE as test-update
FROM $BASE_TEST_IMAGE AS test-update
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get -y upgrade \
Expand Down

0 comments on commit 70dad62

Please sign in to comment.