Skip to content

Commit 0cf71a7

Browse files
committed
fix(python-vulns): adjust dockerfile for linter
1 parent 22371dd commit 0cf71a7

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ WORKDIR /build
77
# Copy application files
88
COPY . .
99

10-
# Build Python 3.15.0a6 from source
10+
# Build Python 3.15.0a6 and apk dependencies from source
1111
RUN 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
3330
RUN set -e; \

0 commit comments

Comments
 (0)