Skip to content

Commit 288fbc7

Browse files
committed
Fix Codacy issues.
1 parent 0f5d727 commit 288fbc7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ RUN apt-get update \
1515
&& rm -rf /var/lib/apt/lists/*
1616

1717
RUN wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz \
18-
&& tar -xvf Python-3.10.0.tgz \
19-
&& cd Python-3.10.0 \
20-
&& ./configure \
18+
&& tar -xvf Python-3.10.0.tgz
19+
20+
WORKDIR Python-3.10.0
21+
RUN ./configure \
2122
&& make \
22-
&& make altinstall \
23-
&& cd - \
24-
&& ln -s /usr/local/bin/python3.10 /usr/bin/python \
23+
&& make altinstall
24+
25+
WORKDIR /app
26+
RUN ln -s /usr/local/bin/python3.10 /usr/bin/python \
2527
&& ln -s /usr/local/bin/pip3.10 /usr/bin/pip
2628

2729
ENV CC=gcc-13 CXX=g++-13

0 commit comments

Comments
 (0)