Skip to content

Commit 79d4fec

Browse files
Update Dev and Prod Dockerfiles to use debian bullseye image (Cloud-CV#4751)
* Update Dev and Prod Dockerfiles to use Debian Bullseye * Change bullseye to slim bullseye * Fix nodejs slim build * Remove slim images * Fix worker images and ARM64 build
1 parent d589f5d commit 79d4fec

10 files changed

Lines changed: 29 additions & 9 deletions

File tree

docker/dev/celery/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9.21
1+
FROM python:3.9.21-bullseye
22

33
ENV PYTHONUNBUFFERED 1
44

docker/dev/django/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9.21
1+
FROM python:3.9.21-bullseye
22

33
ENV PYTHONUNBUFFERED 1
44
ENV PIP_NO_CACHE_DIR=off

docker/dev/nodejs/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Base stage with common dependencies
22
FROM node:14.21.3-bullseye AS base
3+
4+
# Install Python2, symlink, and C++ build tools for node-gyp/node-sass
5+
RUN apt-get update && \
6+
apt-get install -y --no-install-recommends \
7+
python2 \
8+
python-is-python2 \
9+
make \
10+
g++ && \
11+
rm -rf /var/lib/apt/lists/*
12+
313
WORKDIR /code
414

515
# Add dependencies

docker/dev/worker_py3_9/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9-bullseye
1+
FROM python:3.9.21-bullseye
22

33
ENV PYTHONUNBUFFERED 1
44

docker/prod/code-upload-worker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9.21
1+
FROM python:3.9.21-bullseye
22

33
ENV PYTHONUNBUFFERED 1
44

docker/prod/django/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9.21
1+
FROM python:3.9.21-bullseye
22

33
ENV PYTHONUNBUFFERED 1
44

docker/prod/nodejs/Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
FROM node:14.20.0 AS node
1+
FROM node:14.21.3-bullseye AS base
22

33
ARG NODE_ENV
4+
5+
# Install Python2, symlink, and C++ build tools for node-gyp/node-sass
6+
RUN apt-get update && \
7+
apt-get install -y --no-install-recommends \
8+
python2 \
9+
python-is-python2 \
10+
make \
11+
g++ && \
12+
rm -rf /var/lib/apt/lists/*
13+
414
WORKDIR /code
515

616
# Add dependencies

docker/prod/worker_py3_7/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.7.5
1+
FROM python:3.7-bullseye
22

33
ENV PYTHONUNBUFFERED 1
44

docker/prod/worker_py3_8/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.8.10
1+
FROM python:3.8-bullseye
22

33
ENV PYTHONUNBUFFERED 1
44

docker/prod/worker_py3_9/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9.21
1+
FROM python:3.9.21-bullseye
22

33
ENV PYTHONUNBUFFERED 1
44

0 commit comments

Comments
 (0)