mirror of
https://github.com/taroved/pol
synced 2025-05-27 19:40:09 -07:00
37 lines
1.4 KiB
Docker
37 lines
1.4 KiB
Docker
FROM ubuntu:bionic as builder
|
|
|
|
#SHELL ["/bin/bash", "-c"]
|
|
|
|
RUN echo 'APT::Install-Recommends 0;' >> /etc/apt/apt.conf.d/01norecommends \
|
|
&& echo 'APT::Install-Suggests 0;' >> /etc/apt/apt.conf.d/01norecommends \
|
|
&& 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 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 \
|
|
&& pip install --upgrade pip \
|
|
&& npm install -g less@2.7.1 \
|
|
&& npm install -g yuglify@0.1.4 \
|
|
&& gem install sass -v 3.4.22
|
|
|
|
WORKDIR /app
|
|
ADD . .
|
|
|
|
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 \
|
|
&& cp ./frontend/frontend/settings.py.example ./frontend/frontend/settings.py
|
|
|
|
RUN cd /var/lib/gems/2.5.0/gems/sass-3.4.22/lib/sass/ \
|
|
&& sed -i "s/when\ Fixnum/when\ Integer/" util.rb
|
|
|
|
#WORKDIR ./frontend
|
|
RUN chmod +x ./wait-for-it.sh
|
|
|
|
#ENTRYPOINT ["/bin/bash", "start.sh"]
|