2017-07-18 09:00:58 +00:00
|
|
|
|
|
|
|
#bench Dockerfile
|
|
|
|
|
|
|
|
FROM ubuntu:16.04
|
2018-10-05 18:50:11 +00:00
|
|
|
LABEL MAINTAINER frappé
|
2017-07-18 09:00:58 +00:00
|
|
|
|
|
|
|
USER root
|
2018-02-27 09:44:14 +00:00
|
|
|
# Generate locale C.UTF-8 for mariadb and general locale data
|
|
|
|
ENV LANG C.UTF-8
|
2017-07-20 11:48:19 +00:00
|
|
|
|
2018-10-13 03:05:29 +00:00
|
|
|
RUN apt-get update && apt-get install -y iputils-ping git build-essential python-setuptools python-dev libffi-dev libssl-dev libjpeg8-dev \
|
|
|
|
redis-tools redis-server software-properties-common libxrender1 libxext6 xfonts-75dpi xfonts-base zlib1g-dev libfreetype6-dev \
|
|
|
|
liblcms2-dev libwebp-dev python-tk apt-transport-https libsasl2-dev libldap2-dev libtiff5-dev tcl8.6-dev tk8.6-dev \
|
|
|
|
wget libmysqlclient-dev mariadb-client mariadb-common curl rlwrap redis-tools nano wkhtmltopdf python-pip vim sudo
|
|
|
|
RUN pip install --upgrade setuptools pip
|
|
|
|
RUN useradd -ms /bin/bash -G sudo frappe && printf '# User rules for frappe\nfrappe ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/frappe
|
|
|
|
|
2017-07-18 09:00:58 +00:00
|
|
|
#nodejs
|
2018-10-05 18:50:11 +00:00
|
|
|
RUN curl https://deb.nodesource.com/node_10.x/pool/main/n/nodejs/nodejs_10.10.0-1nodesource1_amd64.deb > node.deb \
|
2017-07-18 09:00:58 +00:00
|
|
|
&& dpkg -i node.deb \
|
|
|
|
&& rm node.deb
|
|
|
|
|
|
|
|
USER frappe
|
|
|
|
WORKDIR /home/frappe
|
2018-02-27 09:44:14 +00:00
|
|
|
RUN git clone -b master https://github.com/frappe/bench.git bench-repo
|
2017-07-18 09:00:58 +00:00
|
|
|
|
|
|
|
USER root
|
2018-10-05 18:50:11 +00:00
|
|
|
RUN pip install -e bench-repo \
|
|
|
|
&& npm install -g yarn \
|
2018-10-13 03:05:29 +00:00
|
|
|
&& chown -R frappe:frappe /home/frappe/* \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2017-10-02 04:02:03 +00:00
|
|
|
USER frappe
|
|
|
|
WORKDIR /home/frappe/frappe-bench
|