Skip to content

Commit

Permalink
Bump docker base image
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbrose committed Nov 1, 2024
1 parent d3d28a4 commit 9c22de4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use an official Python runtime based on Alpine Linux as a parent image
FROM python:3.12.7-alpine3.20
FROM python:3.13.0-alpine3.20

# Create a new user 'speedtest' to run the application
# This is a good practice to avoid running the application with root privileges
Expand All @@ -15,7 +15,7 @@ COPY src/. .
# --no-cache-dir: Don't store the cache of pip packages. Helps to reduce image size
# find command: Delete all compiled Python files. This helps to reduce image size
RUN pip install --no-cache-dir -r requirements.txt \
&& find /usr/local/lib/python3.12 -name "*.pyc" -type f -delete
&& find /usr/local/lib/python3.13 -name "*.pyc" -type f -delete

# Change to the 'speedtest' user
# This is a good practice to avoid running the application with root privileges
Expand Down

0 comments on commit 9c22de4

Please sign in to comment.