This `dockerfile` worked for me, maybe you'll need to adjust the version of `pandas` or `python` that adjust to your case.In this example I'm using `pandas==1.2.4`
```Dockerfile
FROM python:3.9-buster
# Set environment variables for Python
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set the working directory in the container
WORKDIR /app
# Install any necessary dependencies
RUN apt-get update && \
apt-get install -y zip && \
rm -rf /var/lib/apt/lists/*
# Copy the requirements file to the working directory
COPY requirements.txt .
# Install the Python packages listed in requirements.txt
RUN pip install -r requirements.txt
CMD "Run whatever you'd like"
```
`Requirements.txt` file.
```
pandas==1.2.4
```
Run `docker build`.
```
docker build -t image_name .
```
This `dockerfile` worked for me, maybe you'll need to adjust the version of `pandas` or `python` that adjust to your case.In this example I'm using `pandas==1.2.4`
```Dockerfile
FROM python:3.9-buster
# Set environment variables for Python
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set the working directory in the container
WORKDIR /app
# Install any necessary dependencies
RUN apt-get update && \
apt-get install -y zip && \
rm -rf /var/lib/apt/lists/*
# Copy the requirements file to the working directory
COPY requirements.txt .
# Install the Python packages listed in requirements.txt
RUN pip install -r requirements.txt
CMD "Run whatever you'd like"
```
`Requirements.txt` file.
```
pandas==1.2.4
```
Run `docker build`.
```
docker build -t image_name .
```