We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93ddb24 commit 12d3b41Copy full SHA for 12d3b41
3.8/alpine3.12/Dockerfile
@@ -7,7 +7,7 @@
7
FROM alpine:3.12
8
9
# ensure local python is preferred over distribution python
10
-ENV PATH /usr/local/bin:$PATH
+ENV PATH /usr/local/bin:/usr/bin:$PATH
11
12
# http://bugs.python.org/issue19846
13
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
@@ -134,4 +134,12 @@ RUN set -ex; \
134
\) -exec rm -rf '{}' +; \
135
rm -f get-pip.py
136
137
-CMD ["python3"]
+# symlink to /usr/bin/python
138
+ENV PATH /usr/bin:$PATH
139
+RUN ln -s /usr/local/bin/python3 /usr/bin/python;
140
+RUN alias python=python3;
141
+RUN ls /usr/bin -al;
142
+RUN ls -al /usr/local/bin;
143
+RUN /usr/bin/python --version;
144
+
145
+ENTRYPOINT ["/usr/bin/python"]
0 commit comments