forked from taroved/pol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (27 loc) · 1.41 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 [email protected] \
&& npm install -g [email protected] \
&& 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"]