Last active
March 4, 2024 01:04
-
-
Save syshen/a11c7b7b38ec544cfe8093ca5233df4e to your computer and use it in GitHub Desktop.
Dockerfile for pandas
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 --platform=linux/amd64 python:3.10-alpine as build | |
COPY ./ /src | |
WORKDIR /src | |
RUN \ | |
apk update && \ | |
apk add py3-pandas && \ | |
apk add --no-cache postgresql-libs && \ | |
apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev && \ | |
pip3 install -r requirements.txt &&\ | |
apk --purge del .build-deps | |
ENV PYTHONPATH=/usr/lib/python3.10/site-packages/ |
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
python-dotenv==0.21.1 | |
Flask==2.2.2 | |
Werkzeug==2.3.7 | |
opencc-python-reimplemented==0.1.4 | |
psycopg2==2.9.9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment