-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfileQ
29 lines (23 loc) · 1.36 KB
/
DockerfileQ
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
FROM phusion/baseimage:0.10.1
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && apt-get install -y \
wget gettext git libfreetype6-dev libjpeg8-dev liblcms2-dev libpq-dev libsqlite3-dev \
libtiff5-dev libwebp-dev libxml2-dev libxslt1-dev redis-server memcached \
nginx npm zip unzip libmagic-dev \
python python-dev python-pip python-psycopg2 python-tk vim \
tcl8.6-dev tk8.6-dev wget zlib1g-dev xmlsec1 libxmlsec1-openssl \
build-essential libcairo2 libpango-1.0-0 libpangocairo-1.0-0 libxmlsec1-dev \
libpq-dev libgdk-pixbuf2.0-0 libffi-dev shared-mime-info && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
pip install virtualenv && \
ln -s /usr/bin/nodejs /usr/bin/node && \
adduser --disabled-login --disabled-password --gecos "" devel && \
echo "devel ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
usermod -p '*' devel && chmod 777 /var/run && chmod 777 /var/log
RUN DEBIAN_FRONTEND=noninteractive add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -sc)-pgdg main" && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && apt-get install -y postgresql-9.6 postgresql-contrib-9.6 postgresql-9.6-postgis-2.4 \
postgresql-9.6-repac
RUN npm config set strict-ssl false
RUN npm install -g [email protected]
COPY . /usr/src/app
CMD ["/sbin/my_init"]