File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ WORKDIR /build
77# Copy application files
88COPY . .
99
10- # Build Python 3.15.0a6 from source
10+ # Build Python 3.15.0a6 and apk dependencies from source
1111RUN set -e; \
1212 apk add --no-cache \
1313 build-base=0.5-r3 \
@@ -21,13 +21,10 @@ RUN set -e; \
2121 wget=1.25.0-r1; \
2222 wget --progress=dot:giga https://www.python.org/ftp/python/3.15.0/Python-3.15.0a6.tgz; \
2323 tar -xzf Python-3.15.0a6.tgz; \
24- cd Python-3.15.0a6; \
25- ./configure --prefix=/usr/local --enable-shared --with-ensurepip=install; \
24+ ./Python-3.15.0a6/configure --prefix=/usr/local --enable-shared --with-ensurepip=install; \
2625 make -j"$(nproc)" ; \
2726 make install; \
28- ln -s /usr/local/bin/python3.15 /usr/local/bin/python; \
29- cd ..; \
30- rm -rf Python-3.15.0a6 Python-3.15.0a6.tgz
27+ ln -s /usr/local/bin/python3.15 /usr/local/bin/python;
3128
3229# Install python dependencies into a target directory
3330RUN set -e; \
You can’t perform that action at this time.
0 commit comments