Skip to content

Instantly share code, notes, and snippets.

@leollon
Last active November 14, 2019 03:12
Show Gist options
  • Save leollon/1091d0e0bd74c7ba4f22e86b4d1654f1 to your computer and use it in GitHub Desktop.
Save leollon/1091d0e0bd74c7ba4f22e86b4d1654f1 to your computer and use it in GitHub Desktop.
python3.7-alpine.dockerfile for uwsgi and pillow
FROM python:3.7-alpine
RUN apk add --no-cache \
gcc linux-headers libc-dev \ # related to build uwsgi
mariadb-dev python3-dev libffi-dev openssl-dev \ # related to mysql, cffi, and ssl.
jpeg-dev zlib-dev bash # related to python package pillow
RUN rm -rf \
/usr/local/share/doc \
/usr/local/share/man \
&& find /usr/local -name '*.a' -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment