Skip to content

Commit

Permalink
Update python to 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
hombit committed Jul 15, 2024
1 parent 407ef72 commit 5a283f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 23 deletions.
26 changes: 7 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-bookworm
FROM python:3.11-bookworm

# Timezone settings
ENV TZ=Europe/Moscow
Expand Down Expand Up @@ -29,25 +29,13 @@ RUN echo "main_memory = 50000000" > /etc/texmf/texmf.d/10main_memory.cnf \
&& texhash \
&& fmtutil-sys --all || test 1

# Install Python build deps for ARM64:
# Install Python build deps, mostly needed for ARM64
# healpy: cfitsio
# confluence-kafka: z, ssl, sasl2, zstd, rdkafka
RUN [ $(arch) = "x86_64" ] \
|| ( \
apt-get update \
&& apt-get install -y --no-install-recommends libcfitsio-dev libz-dev libssl-dev libsasl2-dev libzstd-dev \
&& rm -rf /var/lib/apt/lists/* \
&& curl -LOJ https://github.com/edenhill/librdkafka/archive/refs/tags/v1.9.2.tar.gz \
&& tar -xzvf librdkafka-1.9.2.tar.gz \
&& rm librdkafka-1.9.2.tar.gz \
&& cd /librdkafka-1.9.2 \
&& ./configure --prefix=/usr \
&& make \
&& make install \
&& cd / \
&& rm -rf /librdkafka-1.9.2 \
&& ldconfig \
)
# h5py: hdf5
# confluence-kafka: rdkafka
RUN apt-get update \
&& apt-get install -y --no-install-recommends libhdf5-dev libcfitsio-dev librdkafka-dev \
&& rm -rf /var/lib/apt/lists/*

# Install dependencies
COPY requirements.txt /app/
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
alerce==1.2.0
antares-client==1.2.0
astropy==6.0.0
astropy==6.1.0
astroquery==0.4.6
asttokens==2.2.1
async-timeout==4.0.2
Expand Down Expand Up @@ -33,7 +33,7 @@ executing==1.2.0
Flask==2.3.2
fonttools==4.43.0
gunicorn==20.1.0
h5py==3.7.0
h5py==3.11.0
healpy==1.16.6
html5lib==1.1
idna==3.7
Expand All @@ -60,7 +60,7 @@ matplotlib==3.6.2
matplotlib-inline==0.1.6
more-itertools==9.1.0
nest-asyncio==1.5.6
numpy==1.24.3
numpy==1.26.4
orjson==3.9.15
packaging==21.3
pandas==2.1.2
Expand All @@ -77,7 +77,7 @@ psutil==5.9.4
ptyprocess==0.7.0
pure-eval==0.2.2
pycparser==2.21
pyerfa==2.0.0.1
pyerfa==2.0.1.4
Pygments==2.15.1
pyparsing==3.0.9
pytest==7.2.0
Expand Down

0 comments on commit 5a283f6

Please sign in to comment.