Skip to content

Commit

Permalink
chore: Install MySQL Dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
shonenada committed Mar 22, 2019
1 parent 3aacb3b commit 69e55d9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ COPY ./stalls $WORKSPACE/stalls
COPY ./scripts $WORKSPACE/scripts
COPY ./deploy $WORKSPACE/deploy

RUN apk add --no-cache gcc musl-dev linux-headers \
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories;\
apk add --no-cache gcc musl-dev linux-headers \
build-base cairo-dev cairo cairo-tools \
python3-dev mariadb-dev build-base mariadb-connector-c \
jpeg-dev zlib-dev freetype-dev \
lcms2-dev openjpeg-dev tiff-dev tk-dev tcl-dev \
&& pip install -r /tmp/requirements.txt -i https://pypi.douban.com/simple \
&& pip install gunicorn \
&& pip3 install -r /tmp/requirements.txt -i https://pypi.douban.com/simple \
&& pip3 install gunicorn mysqlclient==1.4.2.post1 \
&& apk del gcc musl-dev linux-headers build-base \
&& chmod +x /entrypoint.sh

Expand Down

0 comments on commit 69e55d9

Please sign in to comment.