Skip to content

Commit

Permalink
FROM alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
xingdao committed May 25, 2019
1 parent e934f67 commit a02a03a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
FROM tnir/mysqlclient:latest
FROM python:3.6.8-alpine3.9
MAINTAINER Xingdao <aoqiwlzj5@gmail.com>

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

Expand Down

0 comments on commit a02a03a

Please sign in to comment.