From 9e1487b6ba9eeeee9e7d9f42cc7dc1e801177073 Mon Sep 17 00:00:00 2001 From: Amit Serper Date: Tue, 5 Dec 2023 13:36:48 -0500 Subject: [PATCH] Smaller docker image --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index bcb7a42..324712f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Use an appropriate base image with Python pre-installed -FROM python:3.8-slim +FROM alpine:3.18 # Set the working directory inside the container WORKDIR /app @@ -8,7 +8,10 @@ WORKDIR /app COPY . /app # Install any Python dependencies + +RUN apk add python3 +RUN apk add py3-pip RUN pip install -r requirements.txt -# Run your Python script +# Run Python script CMD ["python", "main.py"]