Skip to content

Commit 1612d1e

Browse files
committed
Dockerfiles to have same case FROM and AS, to fix warnings
1 parent 945ef00 commit 1612d1e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docker/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG BASE_CONTAINER=perl:5.34
22
ARG NCPUS=4
3-
FROM $BASE_CONTAINER as base
3+
FROM $BASE_CONTAINER AS base
44

55
WORKDIR /pdl
66

@@ -12,7 +12,7 @@ ENV PERL5LIB="${PERL_LOCAL_LIB_ROOT}/lib/perl5${PERL5LIB:+:${PERL5LIB}}"
1212
ENV PERL_MB_OPT="--install_base \"${PERL_LOCAL_LIB_ROOT}\""
1313
ENV PERL_MM_OPT="INSTALL_BASE=${PERL_LOCAL_LIB_ROOT}"
1414

15-
FROM base as deps
15+
FROM base AS deps
1616
# non-free for e.g. pgplot5
1717
RUN apt-get update \
1818
&& apt-get install -y software-properties-common \
@@ -23,7 +23,7 @@ RUN apt-get update \
2323
libcfitsio-dev libreadline-dev libvpx-dev \
2424
netpbm libnetpbm10-dev
2525

26-
FROM deps as builder
26+
FROM deps AS builder
2727
COPY . /pdl/src
2828
RUN cd /pdl/src && (cpanm -nq \
2929
Devel::CheckLib ExtUtils::MakeMaker \
@@ -32,7 +32,7 @@ RUN cd /pdl/src && (cpanm -nq \
3232
&& cpanm --verbose --build-args -j${NCPUS} . \
3333
) || ( cat ~/.cpanm/build.log && false )
3434

35-
FROM deps as run
35+
FROM deps AS run
3636
COPY --from=builder ${PERL_LOCAL_LIB_ROOT} ${PERL_LOCAL_LIB_ROOT}
3737
# Download CPAN metadata for builds
3838
RUN cpanm -nq strict

docker/Dockerfile.downstream

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG BASE_CONTAINER=pdl:latest
2-
FROM $BASE_CONTAINER as base
2+
FROM $BASE_CONTAINER AS base
33

44
WORKDIR /pdl
55

docker/Dockerfile.graphical

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG BASE_CONTAINER=pdl:latest
2-
FROM $BASE_CONTAINER as base
2+
FROM $BASE_CONTAINER AS base
33

44
RUN apt-get update \
55
&& apt-get install --no-install-recommends -y \

0 commit comments

Comments
 (0)