diff --git a/Dockerfile b/Dockerfile index 1949869..02aea52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,19 @@ -FROM tnir/mysqlclient:latest +FROM python:3.6.8-alpine3.9 MAINTAINER Xingdao WORKDIR /app COPY . /app -RUN apk add --update --no-cache gcc \ +RUN apk add --update --no-cache mariadb-connector-c-dev \ + && apk add --no-cache --virtual .build-deps \ + mariadb-dev \ + gcc \ + musl-dev \ libffi-dev \ openssl-dev \ python3-dev \ - && pip install -r requirements.txt + && pip install -r requirements.txt \ + && apk del .build-deps EXPOSE 8000 8080