Skip to content

Commit 6d55d19

Browse files
Merge pull request #8 from DNXLabs/upgrade_python3.10
Adding python3.10
2 parents 16a2ef1 + ca0a5c6 commit 6d55d19

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

3.10/Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM python:3.10-slim-buster
2+
3+
RUN apt-get update && \
4+
apt-get install -y \
5+
wget=1.20.1-1.1 \
6+
zip=3.0-11+b1 \
7+
unzip=6.0-23+deb10u2 \
8+
git=1:2.20.1-2+deb10u3 \
9+
curl \
10+
npm=5.8.0+ds6-4+deb10u2 && \
11+
pip3 install --no-cache-dir --upgrade pip==22.1.2 && \
12+
npm install npm@latest -g && \
13+
npm install -g [email protected] && \
14+
apt-get -q -y clean && \
15+
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
16+
17+
ARG APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1
18+
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash
19+
RUN apt-get install -y nodejs
20+
21+
WORKDIR /work
22+
23+
ENTRYPOINT ["/bin/sh"]

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ build:
2626
-t ${REPO}:3.9-${IMAGE_TAG} \
2727
./3.9/.
2828

29+
# Python 3.10
30+
docker build \
31+
--build-arg base_image=python:3.10-slim \
32+
-t ${REPO}:3.10-${IMAGE_TAG} \
33+
./3.10/.
34+
2935
push:
3036
echo "Push specific tag/release"
3137

@@ -39,4 +45,7 @@ push:
3945
docker push ${REPO}:3.8-${IMAGE_TAG}
4046

4147
# Python 3.9
42-
docker push ${REPO}:3.9-${IMAGE_TAG}
48+
docker push ${REPO}:3.9-${IMAGE_TAG}
49+
50+
# Python 3.10
51+
docker push ${REPO}:3.10-${IMAGE_TAG}

0 commit comments

Comments
 (0)