Skip to content

Commit

Permalink
Merge pull request #203 from DefangLabs/jordan/apt-clean-after-install
Browse files Browse the repository at this point in the history
consistenly clean up apt artifacts after apt-get install in slim images
  • Loading branch information
lionello authored Sep 20, 2024
2 parents 306f8a3 + b0a8e48 commit 55f15f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Use an official Python runtime as a parent image
FROM python:3.11-slim

RUN apt-get update && apt-get install -y curl
RUN apt-get update -qq \
&& apt-get install -y curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
Expand Down

0 comments on commit 55f15f1

Please sign in to comment.