Skip to content

Commit

Permalink
Use python3 package from apk to speed up - SSL works now for some reason
Browse files Browse the repository at this point in the history
  • Loading branch information
dodancs committed May 12, 2024
1 parent afaf2d1 commit c741d50
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,9 @@
FROM alpine:edge as build-stage

# Install Python
ARG PYTHON_VERSION=3.12.3
RUN apk add \
wget \
gcc \
make \
zlib-dev \
libffi-dev \
openssl-dev \
musl-dev \
&& cd /tmp \
&& wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz \
&& tar xzf Python-${PYTHON_VERSION}.tgz \
&& cd /tmp/Python-${PYTHON_VERSION} \
&& ./configure --prefix=/usr --enable-shared --enable-optimizations --with-ensurepip=install \
&& make install

# Install envtpl
ENV PATH "/opt/venv/bin:$PATH"
RUN apk add \
python3=3.12.3-r1 \
binutils \
libffi-dev \
&& python3 -m venv /opt/venv \
Expand Down

0 comments on commit c741d50

Please sign in to comment.