Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile--alpine.tmpl
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
ARG PYTHON_VERSION

# --------------------------------------------- base1
FROM python:${PYTHON_VERSION}-alpine as base1
FROM python:${PYTHON_VERSION}-alpine AS base1

# --------------------------------------------- base1
FROM base1 as base2
FROM base1 AS base2

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

# --------------------------------------------- final
FROM base2 as final
FROM base2 AS final

RUN apk add mc
RUN apk add bash
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile--altlinux_10.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG PYTHON_VERSION

# --------------------------------------------- base1
FROM alt:p10 as base1
FROM alt:p10 AS base1

RUN apt-get update
RUN apt-get install -y sudo curl ca-certificates
Expand All @@ -16,20 +16,20 @@ EXPOSE 22
RUN ssh-keygen -A

# --------------------------------------------- dev_tools
FROM base1 as base1_with_dev_tools
FROM base1 AS base1_with_dev_tools

RUN apt-get update
RUN apt-get install -y git

# --------------------------------------------- base2_with_python-3
FROM base1_with_dev_tools as base2_with_python-3
FROM base1_with_dev_tools AS base2_with_python-3
RUN apt-get install -y python3
RUN apt-get install -y python3-dev

ENV PYTHON_VERSION=3

# --------------------------------------------- final
FROM base2_with_python-${PYTHON_VERSION} as final
FROM base2_with_python-${PYTHON_VERSION} AS final

RUN adduser test -G wheel

Expand Down
8 changes: 4 additions & 4 deletions Dockerfile--altlinux_11.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG PYTHON_VERSION

# --------------------------------------------- base1
FROM alt:p11 as base1
FROM alt:p11 AS base1

RUN apt-get update
RUN apt-get install -y sudo curl ca-certificates
Expand All @@ -19,20 +19,20 @@ EXPOSE 22
RUN ssh-keygen -A

# --------------------------------------------- dev_tools
FROM base1 as base1_with_dev_tools
FROM base1 AS base1_with_dev_tools

RUN apt-get update
RUN apt-get install -y git

# --------------------------------------------- base2_with_python-3
FROM base1_with_dev_tools as base2_with_python-3
FROM base1_with_dev_tools AS base2_with_python-3
RUN apt-get install -y python3
RUN apt-get install -y python3-dev

ENV PYTHON_VERSION=3

# --------------------------------------------- final
FROM base2_with_python-${PYTHON_VERSION} as final
FROM base2_with_python-${PYTHON_VERSION} AS final

RUN adduser test -G wheel

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile--ubuntu_24_04.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG PYTHON_VERSION

# --------------------------------------------- base1
FROM ubuntu:24.04 as base1
FROM ubuntu:24.04 AS base1

RUN apt update
RUN apt install -y sudo curl ca-certificates
Expand All @@ -15,12 +15,12 @@ RUN apt install -y git
# RUN apt install -y mc

# --------------------------------------------- base2_with_python-3
FROM base1 as base2_with_python-3
FROM base1 AS base2_with_python-3
RUN apt install -y python3 python3-dev python3-venv
ENV PYTHON_VERSION=3

# --------------------------------------------- final
FROM base2_with_python-${PYTHON_VERSION} as final
FROM base2_with_python-${PYTHON_VERSION} AS final

EXPOSE 22

Expand Down