Skip to content

Commit 7670ddd

Browse files
committed
Refactor: Use slim variant of Python image and optimize package installation in Dockerfile
1 parent bee7559 commit 7670ddd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
FROM python:3.13
1+
FROM python:3.13-slim
22
ENV PYTHONDONTWRITEBYTECODE=1
33
ENV PYTHONUNBUFFERED=1
44
ENV PYTHONPATH=/app
55
WORKDIR /app
66
COPY requirements.txt .
77
RUN apt-get update &&\
8-
apt-get install -y swig &&\
8+
apt-get install -y --no-install-recommends swig &&\
9+
apt-get upgrade -y &&\
10+
rm -rf /var/lib/apt/lists/* &&\
911
pip install --no-cache-dir -r requirements.txt
1012
COPY . /app/
1113
EXPOSE 8000

0 commit comments

Comments
 (0)