mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-22 15:55:09 +00:00
Update Dockerfile
This commit is contained in:
parent
922832c92c
commit
1113efd652
1 changed files with 4 additions and 8 deletions
12
Dockerfile
12
Dockerfile
|
|
@ -5,6 +5,7 @@ FROM ubuntu:16.04
|
||||||
MAINTAINER frappé
|
MAINTAINER frappé
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
RUN useradd -ms /bin/bash frappe
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
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
|
||||||
|
|
@ -13,7 +14,6 @@ RUN apt-get install -y libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev lib
|
||||||
RUN apt-get install -y wget
|
RUN apt-get install -y wget
|
||||||
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
|
||||||
RUN useradd -ms /bin/bash frappe
|
|
||||||
RUN apt-get install -y curl
|
RUN apt-get install -y curl
|
||||||
RUN apt-get install -y rlwrap
|
RUN apt-get install -y rlwrap
|
||||||
RUN apt-get install redis-tools
|
RUN apt-get install redis-tools
|
||||||
|
|
@ -28,16 +28,12 @@ RUN curl https://deb.nodesource.com/node_6.x/pool/main/n/nodejs/nodejs_6.7.0-1no
|
||||||
&& dpkg -i node.deb \
|
&& dpkg -i node.deb \
|
||||||
&& rm node.deb
|
&& rm node.deb
|
||||||
RUN apt-get install -y wkhtmltopdf
|
RUN apt-get install -y wkhtmltopdf
|
||||||
|
|
||||||
USER frappe
|
|
||||||
WORKDIR /home/frappe
|
|
||||||
RUN git clone -b master https://github.com/frappe/bench.git bench-repo
|
|
||||||
RUN pip install --user -e bench-repo
|
|
||||||
|
|
||||||
USER root
|
|
||||||
RUN apt-get install -y libmysqlclient-dev mariadb-client mariadb-common
|
RUN apt-get install -y libmysqlclient-dev mariadb-client mariadb-common
|
||||||
RUN npm install -g yarn
|
RUN npm install -g yarn
|
||||||
|
|
||||||
USER frappe
|
USER frappe
|
||||||
|
WORKDIR /home/frappe/
|
||||||
|
RUN git clone https://github.com/frappe/bench.git bench-repo
|
||||||
|
RUN pip install --user -e bench-repo
|
||||||
ENV PATH /home/frappe/.local/bin:$PATH
|
ENV PATH /home/frappe/.local/bin:$PATH
|
||||||
WORKDIR /home/frappe/
|
WORKDIR /home/frappe/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue