Skip to content

Commit d3c9a2a

Browse files
committed
bump docker Python to 3.10
1 parent d2565d7 commit d3c9a2a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
# Define a builder image
2-
FROM python:3.7-buster as builder
2+
FROM python:3.10-bullseye as builder
33

44
ENV DEBIAN_FRONTEND=noninteractive
55
ENV LANG=C.UTF-8
66
RUN apt-get update \
77
&& apt-get install -yq --no-install-recommends \
88
ca-certificates \
99
libcurl4-gnutls-dev \
10+
libgnutls28-dev \
11+
libmemcached-dev \
1012
git \
1113
nodejs \
1214
npm
1315

1416
# Python requirements
15-
COPY ./requirements-dev.txt /srv/nbviewer/
1617
COPY ./requirements.txt /srv/nbviewer/
17-
RUN python3 -mpip install -r /srv/nbviewer/requirements-dev.txt -r /srv/nbviewer/requirements.txt
18+
19+
RUN python3 -mpip install -r /srv/nbviewer/requirements.txt
1820

1921
WORKDIR /srv/nbviewer
2022

@@ -24,7 +26,7 @@ RUN python3 setup.py build && \
2426
python3 -mpip wheel -vv . -w /wheels
2527

2628
# Now define the runtime image
27-
FROM python:3.7-slim-buster
29+
FROM python:3.10-slim-bullseye
2830
LABEL maintainer="Jupyter Project <[email protected]>"
2931

3032
ENV DEBIAN_FRONTEND=noninteractive
@@ -34,6 +36,7 @@ RUN apt-get update \
3436
&& apt-get install -yq --no-install-recommends \
3537
ca-certificates \
3638
libcurl4 \
39+
libmemcached11 \
3740
git \
3841
&& apt-get clean && rm -rf /var/lib/apt/lists/*
3942

0 commit comments

Comments
 (0)