Skip to content

Commit 8246973

Browse files
Dockerfiles are update (FROM...AS...) (#333)
This patch fixes a warning: WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line xxx)
1 parent 27df510 commit 8246973

File tree

6 files changed

+31
-31
lines changed

6 files changed

+31
-31
lines changed

Dockerfile--altlinux_10.tmpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG PG_VERSION
22
ARG PYTHON_VERSION
33

44
# --------------------------------------------- base1
5-
FROM alt:p10 as base1
5+
FROM alt:p10 AS base1
66

77
RUN apt-get update
88
RUN apt-get install -y sudo curl ca-certificates
@@ -19,7 +19,7 @@ EXPOSE 22
1919
RUN ssh-keygen -A
2020

2121
# --------------------------------------------- postgres
22-
FROM base1 as base1_with_dev_tools
22+
FROM base1 AS base1_with_dev_tools
2323

2424
RUN apt-get update
2525

@@ -41,7 +41,7 @@ RUN apt-get install -y libzstd-devel
4141
RUN apt-get install -y libxml2-devel
4242

4343
# --------------------------------------------- postgres
44-
FROM base1_with_dev_tools as base1_with_pg-17
44+
FROM base1_with_dev_tools AS base1_with_pg-17
4545

4646
RUN git clone https://github.com/postgres/postgres.git -b REL_17_STABLE /pg/postgres/source
4747

@@ -60,15 +60,15 @@ RUN ln -s /pg/postgres/install/bin/pg_config -t /usr/local/bin
6060
RUN ln -s /pg/postgres/install/lib/libpq.so.5.17 /usr/lib64/libpq.so.5
6161

6262
# --------------------------------------------- base2_with_python-3
63-
FROM base1_with_pg-${PG_VERSION} as base2_with_python-3
63+
FROM base1_with_pg-${PG_VERSION} AS base2_with_python-3
6464
RUN apt-get install -y python3
6565
RUN apt-get install -y python3-dev
6666
RUN apt-get install -y python3-modules-sqlite3
6767

6868
ENV PYTHON_BINARY=python3
6969

7070
# --------------------------------------------- final
71-
FROM base2_with_python-${PYTHON_VERSION} as final
71+
FROM base2_with_python-${PYTHON_VERSION} AS final
7272

7373
RUN adduser test -G wheel
7474

Dockerfile--altlinux_11.tmpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG PG_VERSION
22
ARG PYTHON_VERSION
33

44
# --------------------------------------------- base1
5-
FROM alt:p11 as base1
5+
FROM alt:p11 AS base1
66

77
RUN apt-get update
88
RUN apt-get install -y sudo curl ca-certificates
@@ -22,7 +22,7 @@ EXPOSE 22
2222
RUN ssh-keygen -A
2323

2424
# --------------------------------------------- postgres
25-
FROM base1 as base1_with_dev_tools
25+
FROM base1 AS base1_with_dev_tools
2626

2727
RUN apt-get update
2828

@@ -44,7 +44,7 @@ RUN apt-get install -y libzstd-devel
4444
RUN apt-get install -y libxml2-devel
4545

4646
# --------------------------------------------- postgres
47-
FROM base1_with_dev_tools as base1_with_pg-17
47+
FROM base1_with_dev_tools AS base1_with_pg-17
4848

4949
RUN git clone https://github.com/postgres/postgres.git -b REL_17_STABLE /pg/postgres/source
5050

@@ -63,15 +63,15 @@ RUN ln -s /pg/postgres/install/bin/pg_config -t /usr/local/bin
6363
RUN ln -s /pg/postgres/install/lib/libpq.so.5.17 /usr/lib64/libpq.so.5
6464

6565
# --------------------------------------------- base2_with_python-3
66-
FROM base1_with_pg-${PG_VERSION} as base2_with_python-3
66+
FROM base1_with_pg-${PG_VERSION} AS base2_with_python-3
6767
RUN apt-get install -y python3
6868
RUN apt-get install -y python3-dev
6969
RUN apt-get install -y python3-modules-sqlite3
7070

7171
ENV PYTHON_BINARY=python3
7272

7373
# --------------------------------------------- final
74-
FROM base2_with_python-${PYTHON_VERSION} as final
74+
FROM base2_with_python-${PYTHON_VERSION} AS final
7575

7676
RUN adduser test -G wheel
7777

Dockerfile--std-all.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ ARG PG_VERSION
22
ARG PYTHON_VERSION
33

44
# --------------------------------------------- base1
5-
FROM postgres:${PG_VERSION}-alpine as base1
5+
FROM postgres:${PG_VERSION}-alpine AS base1
66

77
# --------------------------------------------- base2_with_python-3
8-
FROM base1 as base2_with_python-3
8+
FROM base1 AS base2_with_python-3
99
RUN apk add --no-cache curl python3 python3-dev build-base musl-dev linux-headers
1010
ENV PYTHON_BINARY=python3
1111

1212
# --------------------------------------------- final
13-
FROM base2_with_python-${PYTHON_VERSION} as final
13+
FROM base2_with_python-${PYTHON_VERSION} AS final
1414

1515
#RUN apk add --no-cache mc
1616
RUN apk add --no-cache git

Dockerfile--std.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ ARG PG_VERSION
22
ARG PYTHON_VERSION
33

44
# --------------------------------------------- base1
5-
FROM postgres:${PG_VERSION}-alpine as base1
5+
FROM postgres:${PG_VERSION}-alpine AS base1
66

77
# --------------------------------------------- base2_with_python-3
8-
FROM base1 as base2_with_python-3
8+
FROM base1 AS base2_with_python-3
99
RUN apk add --no-cache curl python3 python3-dev build-base musl-dev linux-headers
1010
ENV PYTHON_BINARY=python3
1111

1212
# --------------------------------------------- final
13-
FROM base2_with_python-${PYTHON_VERSION} as final
13+
FROM base2_with_python-${PYTHON_VERSION} AS final
1414

1515
RUN apk add --no-cache git
1616

Dockerfile--std2-all.tmpl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ ARG PG_VERSION
22
ARG PYTHON_VERSION
33

44
# --------------------------------------------- base1
5-
FROM postgres:${PG_VERSION}-alpine as base1
5+
FROM postgres:${PG_VERSION}-alpine AS base1
66

77
# --------------------------------------------- base2_with_python-3
8-
FROM base1 as base2_with_python-3
8+
FROM base1 AS base2_with_python-3
99
ENV PYTHON_BINARY=python3
1010
RUN apk add --no-cache curl python3 python3-dev build-base musl-dev linux-headers
1111

@@ -22,43 +22,43 @@ RUN apk add sqlite-dev
2222
RUN apk add bzip2-dev
2323

2424
# --------------------------------------------- base3_with_python-3.7
25-
FROM base2_with_python-3 as base3_with_python-3.7
25+
FROM base2_with_python-3 AS base3_with_python-3.7
2626
ENV PYTHON_VERSION=3.7
2727

2828
# --------------------------------------------- base3_with_python-3.8.0
29-
FROM base2_with_python-3 as base3_with_python-3.8.0
29+
FROM base2_with_python-3 AS base3_with_python-3.8.0
3030
ENV PYTHON_VERSION=3.8.0
3131

3232
# --------------------------------------------- base3_with_python-3.8
33-
FROM base2_with_python-3 as base3_with_python-3.8
33+
FROM base2_with_python-3 AS base3_with_python-3.8
3434
ENV PYTHON_VERSION=3.8
3535

3636
# --------------------------------------------- base3_with_python-3.9
37-
FROM base2_with_python-3 as base3_with_python-3.9
37+
FROM base2_with_python-3 AS base3_with_python-3.9
3838
ENV PYTHON_VERSION=3.9
3939

4040
# --------------------------------------------- base3_with_python-3.10
41-
FROM base2_with_python-3 as base3_with_python-3.10
41+
FROM base2_with_python-3 AS base3_with_python-3.10
4242
ENV PYTHON_VERSION=3.10
4343

4444
# --------------------------------------------- base3_with_python-3.11
45-
FROM base2_with_python-3 as base3_with_python-3.11
45+
FROM base2_with_python-3 AS base3_with_python-3.11
4646
ENV PYTHON_VERSION=3.11
4747

4848
# --------------------------------------------- base3_with_python-3.12
49-
FROM base2_with_python-3 as base3_with_python-3.12
49+
FROM base2_with_python-3 AS base3_with_python-3.12
5050
ENV PYTHON_VERSION=3.12
5151

5252
# --------------------------------------------- base3_with_python-3.13
53-
FROM base2_with_python-3 as base3_with_python-3.13
53+
FROM base2_with_python-3 AS base3_with_python-3.13
5454
ENV PYTHON_VERSION=3.13
5555

5656
# --------------------------------------------- base3_with_python-3.14
57-
FROM base2_with_python-3 as base3_with_python-3.14
57+
FROM base2_with_python-3 AS base3_with_python-3.14
5858
ENV PYTHON_VERSION=3.14
5959

6060
# --------------------------------------------- final
61-
FROM base3_with_python-${PYTHON_VERSION} as final
61+
FROM base3_with_python-${PYTHON_VERSION} AS final
6262

6363
#RUN apk add --no-cache mc
6464

Dockerfile--ubuntu_24_04.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG PG_VERSION
22
ARG PYTHON_VERSION
33

44
# --------------------------------------------- base1
5-
FROM ubuntu:24.04 as base1
5+
FROM ubuntu:24.04 AS base1
66
ARG PG_VERSION
77

88
RUN apt update
@@ -31,12 +31,12 @@ EXPOSE 22
3131
RUN ssh-keygen -A
3232

3333
# --------------------------------------------- base2_with_python-3
34-
FROM base1 as base2_with_python-3
34+
FROM base1 AS base2_with_python-3
3535
RUN apt install -y python3 python3-dev python3-venv libpq-dev build-essential
3636
ENV PYTHON_BINARY=python3
3737

3838
# --------------------------------------------- final
39-
FROM base2_with_python-${PYTHON_VERSION} as final
39+
FROM base2_with_python-${PYTHON_VERSION} AS final
4040

4141
RUN apt install -y git
4242

0 commit comments

Comments
 (0)