Skip to content

Commit 4c51003

Browse files
authored
Shrink emailservice base image, to python:3.12.7-alpine (#2813)
* Shrink emailservice base image, to python:3.13.0-alpine * Update SHA256 hash * Use AMD image instead of ARM * Update commands in Dockerfile for alpine * Downgrade to Python 3.12 I got the following error: Building wheels for collected packages: google-cloud-profiler, grpcio, markupsafe Building wheel for google-cloud-profiler (pyproject.toml): started Building wheel for google-cloud-profiler (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error × Building wheel for google-cloud-profiler (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [59 lines of output] running bdist_wheel See https://github.com/GoogleCloudPlatform/microservices-demo/actions/runs/12034390461/job/33550847022?pr=2813. This is because of an incompatibility between the google-cloud-profiler library and Python 3.13.
1 parent a070582 commit 4c51003

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/emailservice/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM python:3.12.6-slim@sha256:ad48727987b259854d52241fac3bc633574364867b8e20aec305e6e7f4028b26 AS base
15+
FROM python:3.12.7-alpine@sha256:b83d5ec7274bee17d2f4bd0bfbb082f156241e4513f0a37c70500e1763b1d90d AS base
1616

1717
FROM base AS builder
1818

19-
RUN apt-get -qq update \
20-
&& apt-get install -y --no-install-recommends \
21-
wget g++ \
22-
&& rm -rf /var/lib/apt/lists/*
19+
RUN apk update \
20+
&& apk add --no-cache wget g++ \
21+
&& rm -rf /var/cache/apk/*
2322

2423
# get packages
2524
COPY requirements.txt .

0 commit comments

Comments
 (0)