mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-21 15:25:09 +00:00
Merge pull request #1 from sopanawit/develop
Update Dockerfile to use ubuntu 18.04 as production and update some l…
This commit is contained in:
commit
28f3af05f5
1 changed files with 17 additions and 13 deletions
28
Dockerfile
28
Dockerfile
|
|
@ -2,32 +2,36 @@
|
||||||
#bench Dockerfile
|
#bench Dockerfile
|
||||||
|
|
||||||
FROM ubuntu:16.04
|
FROM ubuntu:16.04
|
||||||
MAINTAINER frappé
|
MAINTAINER Facgure
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
RUN apt-get update
|
RUN apt-get update -y
|
||||||
RUN apt-get install -y iputils-ping
|
RUN apt-get install -y iputils-ping
|
||||||
RUN apt-get install -y git build-essential python-setuptools python-dev libffi-dev libssl-dev
|
RUN apt-get install -y git build-essential python-setuptools python-dev libffi-dev libssl-dev
|
||||||
RUN apt-get install -y redis-tools software-properties-common libxrender1 libxext6 xfonts-75dpi xfonts-base
|
RUN apt-get install -y redis-tools software-properties-common libxrender1 libxext6 xfonts-75dpi xfonts-base
|
||||||
|
|
||||||
|
RUN DEBIAN_FRONTEND=noninteractive apt-get -yq install tzdata
|
||||||
|
RUN ln -fs /usr/share/zoneinfo/Asia/Bangkok /etc/localtime
|
||||||
|
RUN dpkg-reconfigure --frontend noninteractive tzdata
|
||||||
|
|
||||||
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 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 apt-get install -y wget wkhtmltopdf curl rlwrap vim
|
||||||
|
|
||||||
RUN wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py
|
RUN wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py
|
||||||
RUN pip install --upgrade setuptools pip
|
RUN pip install --upgrade setuptools pip
|
||||||
|
|
||||||
|
# Add user frappe and set as sudoers
|
||||||
|
RUN apt-get install -y sudo
|
||||||
RUN useradd -ms /bin/bash frappe
|
RUN useradd -ms /bin/bash frappe
|
||||||
RUN apt-get install -y curl
|
RUN usermod -aG sudo frappe
|
||||||
RUN apt-get install -y rlwrap
|
RUN printf '# User rules for frappe\nfrappe ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/frappe
|
||||||
RUN apt-get install redis-tools
|
|
||||||
RUN apt-get install -y nano
|
|
||||||
|
|
||||||
# Generate locale C.UTF-8 for mariadb and general locale data
|
# Generate locale C.UTF-8 for mariadb and general locale data
|
||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
|
|
||||||
#nodejs
|
#nodejs
|
||||||
RUN apt-get install curl
|
RUN curl --silent --location https://deb.nodesource.com/setup_8.x | bash -
|
||||||
RUN curl https://deb.nodesource.com/node_6.x/pool/main/n/nodejs/nodejs_6.7.0-1nodesource1~xenial1_amd64.deb > node.deb \
|
RUN apt-get install -y nodejs
|
||||||
&& dpkg -i node.deb \
|
|
||||||
&& rm node.deb
|
|
||||||
RUN apt-get install -y wkhtmltopdf
|
|
||||||
|
|
||||||
USER frappe
|
USER frappe
|
||||||
WORKDIR /home/frappe
|
WORKDIR /home/frappe
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue