Skip to content

Instantly share code, notes, and snippets.

@rtorresve
Created September 7, 2017 18:54
Show Gist options
  • Save rtorresve/047d03aa42c03ac23e8ddcc39886cbd5 to your computer and use it in GitHub Desktop.
Save rtorresve/047d03aa42c03ac23e8ddcc39886cbd5 to your computer and use it in GitHub Desktop.
python dockerfile with mysql lybraries
FROM python:3.6-alpine3.6
MAINTAINER Rafael Torres <[email protected]>
RUN apk add --update \
mariadb-client-libs \
mariadb-dev \
gcc \
musl-dev \
bash \
&& pip install --no-cache-dir mysqlclient==1.3.12 \
&& apk del .build-deps \
&& rm /var/cache/apk/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment