File tree Expand file tree Collapse file tree 4 files changed +14
-14
lines changed
Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 11ARG 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
99RUN apk add python3-dev build-base musl-dev linux-headers
1010RUN apk add git
1111
1212# --------------------------------------------- final
13- FROM base2 as final
13+ FROM base2 AS final
1414
1515RUN apk add mc
1616RUN apk add bash
Original file line number Diff line number Diff line change 11ARG PYTHON_VERSION
22
33# --------------------------------------------- base1
4- FROM alt:p10 as base1
4+ FROM alt:p10 AS base1
55
66RUN apt-get update
77RUN apt-get install -y sudo curl ca-certificates
@@ -16,20 +16,20 @@ EXPOSE 22
1616RUN ssh-keygen -A
1717
1818# --------------------------------------------- dev_tools
19- FROM base1 as base1_with_dev_tools
19+ FROM base1 AS base1_with_dev_tools
2020
2121RUN apt-get update
2222RUN 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
2626RUN apt-get install -y python3
2727RUN apt-get install -y python3-dev
2828
2929ENV 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
3434RUN adduser test -G wheel
3535
Original file line number Diff line number Diff line change 11ARG PYTHON_VERSION
22
33# --------------------------------------------- base1
4- FROM alt:p11 as base1
4+ FROM alt:p11 AS base1
55
66RUN apt-get update
77RUN apt-get install -y sudo curl ca-certificates
@@ -19,20 +19,20 @@ EXPOSE 22
1919RUN ssh-keygen -A
2020
2121# --------------------------------------------- dev_tools
22- FROM base1 as base1_with_dev_tools
22+ FROM base1 AS base1_with_dev_tools
2323
2424RUN apt-get update
2525RUN 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
2929RUN apt-get install -y python3
3030RUN apt-get install -y python3-dev
3131
3232ENV 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
3737RUN adduser test -G wheel
3838
Original file line number Diff line number Diff line change 11ARG PYTHON_VERSION
22
33# --------------------------------------------- base1
4- FROM ubuntu:24.04 as base1
4+ FROM ubuntu:24.04 AS base1
55
66RUN apt update
77RUN 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
1919RUN apt install -y python3 python3-dev python3-venv
2020ENV 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
2525EXPOSE 22
2626
You can’t perform that action at this time.
0 commit comments