Last active
May 3, 2021 08:50
-
-
Save fredrikw/930e388da9c6f37c2b24544b77a6ba89 to your computer and use it in GitHub Desktop.
Test dockerfile for pandas issue 41237 (https://github.com/pandas-dev/pandas/issues/41237)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python | |
WORKDIR /usr/src/app | |
RUN pip install pandas | |
# Change the above line for the following to get the expected table not found error | |
# RUN pip install pandas sqlalchemy | |
RUN echo 'import pandas as pd\n\ | |
saconnstring="sqlite:///test.db"\n\ | |
print(pd.read_sql_table("test", saconnstring))\n\ | |
print("Done")\n' >> testscript.py | |
CMD ["python", "testscript.py" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment