mirror of
https://github.com/taroved/pol
synced 2025-05-16 22:30:09 -07:00
Merge pull request #42 from marlluslustosa/master
fix and add dependencies and path
This commit is contained in:
commit
2d8c118705
12
Dockerfile
12
Dockerfile
@ -1,10 +1,12 @@
|
|||||||
FROM ubuntu:bionic as builder
|
FROM ubuntu:bionic as builder
|
||||||
|
|
||||||
|
#SHELL ["/bin/bash", "-c"]
|
||||||
|
|
||||||
RUN echo 'APT::Install-Recommends 0;' >> /etc/apt/apt.conf.d/01norecommends \
|
RUN echo 'APT::Install-Recommends 0;' >> /etc/apt/apt.conf.d/01norecommends \
|
||||||
&& echo 'APT::Install-Suggests 0;' >> /etc/apt/apt.conf.d/01norecommends \
|
&& echo 'APT::Install-Suggests 0;' >> /etc/apt/apt.conf.d/01norecommends \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y bash mysql-client vim.tiny wget sudo net-tools ca-certificates unzip apt-transport-https \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y bash mysql-client vim.tiny wget sudo net-tools ca-certificates unzip apt-transport-https \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y python-minimal libmysqlclient-dev libxml2-dev libxslt-dev python-dev libffi-dev gcc libssl-dev gettext \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y python-minimal python-dev libmysqlclient-dev libxml2-dev libxslt-dev python-dev libffi-dev gcc libssl-dev gettext \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y python-pip python-setuptools nodejs node-gyp npm ruby nginx \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y python-pip python-setuptools nodejs node-gyp npm ruby nginx \
|
||||||
&& pip install --upgrade pip \
|
&& pip install --upgrade pip \
|
||||||
&& npm install -g less@2.7.1 \
|
&& npm install -g less@2.7.1 \
|
||||||
@ -14,7 +16,13 @@ RUN echo 'APT::Install-Recommends 0;' >> /etc/apt/apt.conf.d/01norecommends \
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ADD . .
|
ADD . .
|
||||||
|
|
||||||
RUN pip install -r requirements.txt
|
RUN export PATH=$PATH:/usr/bin/ \
|
||||||
|
&& export PATH=$PATH:/usr/local/bin/
|
||||||
|
|
||||||
|
RUN pip install --upgrade setuptools \
|
||||||
|
&& pip install -r requirements.txt \
|
||||||
|
&& apt-get install -y libmysqlclient-dev \
|
||||||
|
&& pip install --user MySQL-python
|
||||||
|
|
||||||
RUN cp ./nginx/default.site-example /etc/nginx/sites-available/default \
|
RUN cp ./nginx/default.site-example /etc/nginx/sites-available/default \
|
||||||
&& cp ./frontend/frontend/settings.py.example ./frontend/frontend/settings.py
|
&& cp ./frontend/frontend/settings.py.example ./frontend/frontend/settings.py
|
||||||
|
@ -3,7 +3,8 @@ Django==1.8.6
|
|||||||
lxml==3.8.0
|
lxml==3.8.0
|
||||||
Scrapy==1.4.0
|
Scrapy==1.4.0
|
||||||
django-pipeline==1.5.4
|
django-pipeline==1.5.4
|
||||||
mysqlclient==1.3.7
|
#mysqlclient==1.3.7
|
||||||
|
#MySQL-python==1.2.5
|
||||||
w3lib==1.17.0
|
w3lib==1.17.0
|
||||||
feedgenerator==1.8
|
feedgenerator==1.8
|
||||||
brotli==0.6.0
|
brotli==0.6.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user