Skip to content

Commit f20ae1e

Browse files
Dockerfiles are update (FROM...AS...) (#20)
1 parent 6dd667d commit f20ae1e

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

Dockerfile--alpine.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
ARG PYTHON_VERSION
22

33
# --------------------------------------------- base1
4-
FROM python:${PYTHON_VERSION}-alpine as base1
4+
FROM python:${PYTHON_VERSION}-alpine AS base1
55

66
# --------------------------------------------- base1
7-
FROM base1 as base2
7+
FROM base1 AS base2
88

99
RUN apk add python3-dev build-base musl-dev linux-headers
1010
RUN apk add git
1111

1212
# --------------------------------------------- final
13-
FROM base2 as final
13+
FROM base2 AS final
1414

1515
RUN apk add mc
1616
RUN apk add bash

Dockerfile--altlinux_10.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG PYTHON_VERSION
22

33
# --------------------------------------------- base1
4-
FROM alt:p10 as base1
4+
FROM alt:p10 AS base1
55

66
RUN apt-get update
77
RUN apt-get install -y sudo curl ca-certificates
@@ -16,20 +16,20 @@ EXPOSE 22
1616
RUN ssh-keygen -A
1717

1818
# --------------------------------------------- dev_tools
19-
FROM base1 as base1_with_dev_tools
19+
FROM base1 AS base1_with_dev_tools
2020

2121
RUN apt-get update
2222
RUN apt-get install -y git
2323

2424
# --------------------------------------------- base2_with_python-3
25-
FROM base1_with_dev_tools as base2_with_python-3
25+
FROM base1_with_dev_tools AS base2_with_python-3
2626
RUN apt-get install -y python3
2727
RUN apt-get install -y python3-dev
2828

2929
ENV PYTHON_VERSION=3
3030

3131
# --------------------------------------------- final
32-
FROM base2_with_python-${PYTHON_VERSION} as final
32+
FROM base2_with_python-${PYTHON_VERSION} AS final
3333

3434
RUN adduser test -G wheel
3535

Dockerfile--altlinux_11.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG PYTHON_VERSION
22

33
# --------------------------------------------- base1
4-
FROM alt:p11 as base1
4+
FROM alt:p11 AS base1
55

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

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

2424
RUN apt-get update
2525
RUN apt-get install -y git
2626

2727
# --------------------------------------------- base2_with_python-3
28-
FROM base1_with_dev_tools as base2_with_python-3
28+
FROM base1_with_dev_tools AS base2_with_python-3
2929
RUN apt-get install -y python3
3030
RUN apt-get install -y python3-dev
3131

3232
ENV PYTHON_VERSION=3
3333

3434
# --------------------------------------------- final
35-
FROM base2_with_python-${PYTHON_VERSION} as final
35+
FROM base2_with_python-${PYTHON_VERSION} AS final
3636

3737
RUN adduser test -G wheel
3838

Dockerfile--ubuntu_24_04.tmpl

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

33
# --------------------------------------------- base1
4-
FROM ubuntu:24.04 as base1
4+
FROM ubuntu:24.04 AS base1
55

66
RUN apt update
77
RUN apt install -y sudo curl ca-certificates
@@ -15,12 +15,12 @@ RUN apt install -y git
1515
# RUN apt install -y mc
1616

1717
# --------------------------------------------- base2_with_python-3
18-
FROM base1 as base2_with_python-3
18+
FROM base1 AS base2_with_python-3
1919
RUN apt install -y python3 python3-dev python3-venv
2020
ENV PYTHON_VERSION=3
2121

2222
# --------------------------------------------- final
23-
FROM base2_with_python-${PYTHON_VERSION} as final
23+
FROM base2_with_python-${PYTHON_VERSION} AS final
2424

2525
EXPOSE 22
2626

0 commit comments

Comments
 (0)