Skip to content

Commit

Permalink
Update Dockerfile to use Python 3.11.11 and Alpine Linux
Browse files Browse the repository at this point in the history
- Update base image to `public.ecr.aws/docker/library/python:3.11.11-slim-bookworm` for improved performance
- Switch to `public.ecr.aws/docker/library/python:3.11.11-alpine` as the new base image for reduced size
- Preserve `LABEL description="Get local datetime from multiple timezones!"`
  • Loading branch information
yankeexe committed Dec 7, 2024
1 parent c2b93eb commit 0ab5d23
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-slim-buster as build
FROM public.ecr.aws/docker/library/python:3.11.11-slim-bookworm AS build

RUN apt-get update && apt install -y gcc && \
useradd -ms /bin/bash tz
Expand All @@ -11,7 +11,8 @@ COPY --chown=tz:tz . .

RUN pip install --no-cache-dir --user .

FROM python:3.9-alpine

FROM public.ecr.aws/docker/library/python:3.11.11-alpine

LABEL description="Get local datetime from multiple timezones!"

Expand Down

0 comments on commit 0ab5d23

Please sign in to comment.