Skip to content

Commit 7e5539e

Browse files
committed
feat: upgrade docker config
1 parent a8484cf commit 7e5539e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM ubuntu:bionic
1+
FROM ubuntu:noble
22

33
RUN apt-get update \
44
&& apt-get install -y --no-install-recommends \
5-
python-pip python-setuptools python-wheel \
5+
python3-pip python3-setuptools python3-wheel \
66
locales tzdata \
77
ca-certificates \
88
strace gdb lsof locate net-tools htop iputils-ping dnsutils \
9-
python2.7-dbg python2.7 libpython2.7 python-dbg libpython-dbg \
9+
python3-dbg libpython3-dbg \
1010
curl nano vim tree less telnet patch \
1111
graphviz sqlite3 \
1212
dumb-init \
@@ -25,9 +25,9 @@ WORKDIR /planet
2525
ENTRYPOINT ["dumb-init"]
2626

2727
RUN echo "#!/bin/bash -eux \n\
28-
python2.7 code/planet.py config/config.ini \n\
28+
python3.12 code/planet.py config/config.ini \n\
2929
cd /srv/planetpython.org/ \n\
30-
python2.7 -mSimpleHTTPServer 8080 \n\
30+
python3.12 -m http.server 8080 \n\
3131
"> /start.sh
3232
RUN chmod +x /start.sh
3333
EXPOSE 8080

0 commit comments

Comments
 (0)