Skip to content

Instantly share code, notes, and snippets.

@syshen
Last active March 4, 2024 01:04
Show Gist options
  • Save syshen/a11c7b7b38ec544cfe8093ca5233df4e to your computer and use it in GitHub Desktop.
Save syshen/a11c7b7b38ec544cfe8093ca5233df4e to your computer and use it in GitHub Desktop.
Dockerfile for pandas
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/
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