2017-07-18 09:00:58 +00:00
|
|
|
|
|
|
|
#bench Dockerfile
|
|
|
|
|
|
|
|
FROM ubuntu:16.04
|
2017-11-27 07:33:33 +00:00
|
|
|
MAINTAINER frappé
|
2017-07-18 09:00:58 +00:00
|
|
|
|
|
|
|
USER root
|
|
|
|
RUN apt-get update
|
2017-07-20 11:48:19 +00:00
|
|
|
RUN apt-get install -y iputils-ping
|
2017-07-18 09:00:58 +00:00
|
|
|
RUN apt-get install -y git build-essential python-setuptools python-dev libffi-dev libssl-dev
|
2018-09-28 08:00:13 +00:00
|
|
|
RUN apt-get install -y redis-tools redis-server software-properties-common libxrender1 libxext6 xfonts-75dpi xfonts-base
|
2017-07-18 09:00:58 +00:00
|
|
|
RUN apt-get install -y libjpeg8-dev 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
|
|
|
|
RUN apt-get install -y wget
|
|
|
|
RUN wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py
|
|
|
|
RUN pip install --upgrade setuptools pip
|
|
|
|
RUN useradd -ms /bin/bash frappe
|
|
|
|
RUN apt-get install -y curl
|
|
|
|
RUN apt-get install -y rlwrap
|
2017-10-02 04:02:03 +00:00
|
|
|
RUN apt-get install redis-tools
|
2017-07-18 09:00:58 +00:00
|
|
|
RUN apt-get install -y nano
|
|
|
|
|
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
|
|
|
|
2017-07-18 09:00:58 +00:00
|
|
|
#nodejs
|
|
|
|
RUN apt-get install curl
|
|
|
|
RUN curl https://deb.nodesource.com/node_6.x/pool/main/n/nodejs/nodejs_6.7.0-1nodesource1~xenial1_amd64.deb > node.deb \
|
|
|
|
&& dpkg -i node.deb \
|
|
|
|
&& rm node.deb
|
|
|
|
RUN apt-get install -y wkhtmltopdf
|
|
|
|
|
|
|
|
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
|
2017-10-02 04:02:03 +00:00
|
|
|
RUN pip install -e bench-repo
|
|
|
|
RUN apt-get install -y libmysqlclient-dev mariadb-client mariadb-common
|
2018-02-27 09:44:14 +00:00
|
|
|
RUN npm install -g yarn
|
2017-10-02 04:02:03 +00:00
|
|
|
RUN chown -R frappe:frappe /home/frappe/*
|
2017-07-18 09:00:58 +00:00
|
|
|
|
2017-10-02 04:02:03 +00:00
|
|
|
USER frappe
|
|
|
|
WORKDIR /home/frappe/frappe-bench
|