Smaller docker image

This commit is contained in:
Amit Serper 2023-12-05 13:36:48 -05:00
parent 7e86e9ad97
commit 9e1487b6ba

View File

@ -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"]