I have this Dockerfile:
FROM python:3.10
ADD main.py .
RUN pip install pandas
CMD ["python", "./main.py"]
and this main.py
import pandas as pd
csv = r'C:\Users\juanm\OneDrive\Escritorio\Python\Challenge\Resolucion\input_folder\customers.csv'
df_customers = pd.read_csv(csv, sep=';')
csv2 = r'C:\Users\juanm\OneDrive\Escritorio\Python\Challenge\Resolucion\input_folder\payments.csv'
df_payments = pd.read_csv(csv2, sep=';')
df_customers = df_customers.merge(df_payments)
df_customers = df_customers.reindex(columns=('id_customer', 'job', 'date','payment'))
df_customers = df_customers.groupby(by=['id_customer','date']).agg({'job': 'max', 'payment':'max'})
df_customers = df_customers.reset_index()
The docker build works fine, but when i try to make docker run, i recieve this error, and i dont know why, because i think than path is right.
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\juanm\\OneDrive\\Escritorio\\Python\\Challenge\\Resolucion\\input_folder\\customers.csv'