Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Refactoring of dockerfiles #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Prev Previous commit
Next Next commit
Dockerfile--std.tmpl is updated (formatting)
  • Loading branch information
dmitry-lipetsk committed Mar 12, 2025
commit 79bee5bc9b5fa2cfc6380adf776195d074718c5c
4 changes: 4 additions & 0 deletions Dockerfile--std.tmpl
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
ARG PG_VERSION
ARG PYTHON_VERSION

# --------------------------------------------- base1
FROM postgres:${PG_VERSION}-alpine as base1

# --------------------------------------------- base2_with_python-2
FROM base1 as base2_with_python-2
RUN apk add --no-cache curl python2 python2-dev build-base musl-dev linux-headers py-virtualenv py-pip
ENV PYTHON_VERSION=2

# --------------------------------------------- base2_with_python-3
FROM base1 as base2_with_python-3
RUN apk add --no-cache curl python3 python3-dev build-base musl-dev linux-headers py-virtualenv
ENV PYTHON_VERSION=3

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

ENV LANG=C.UTF-8
Expand Down