mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-20 07:05:08 +00:00
better work
This commit is contained in:
parent
806eb9214b
commit
ec4cd3e762
1 changed files with 13 additions and 11 deletions
24
Dockerfile
24
Dockerfile
|
|
@ -5,7 +5,6 @@ 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
|
||||||
|
|
@ -14,6 +13,7 @@ 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,15 +28,17 @@ 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
|
||||||
RUN apt-get install -y libmysqlclient-dev mariadb-client mariadb-common
|
|
||||||
RUN npm install -g yarn
|
|
||||||
RUN chown -R frappe:frappe /home/frappe/*
|
|
||||||
ENV PATH /home/frappe/.local/bin
|
|
||||||
|
|
||||||
|
|
||||||
USER frappe
|
USER frappe
|
||||||
WORKDIR /home/frappe/
|
WORKDIR /home/frappe
|
||||||
RUN git clone https://github.com/frappe/bench.git bench-repo
|
RUN git clone -b master https://github.com/frappe/bench.git bench-repo
|
||||||
RUN pip install --user -e bench-repo
|
|
||||||
ENV PATH /home/frappe/.local/bin:$PATH
|
USER root
|
||||||
WORKDIR /home/frappe/
|
RUN pip install -e bench-repo
|
||||||
|
RUN apt-get install -y libmysqlclient-dev mariadb-client mariadb-common
|
||||||
|
RUN npm install -g yarn
|
||||||
|
RUN chown -R frappe:frappe /home/frappe
|
||||||
|
ENV PATH /home/frappe/.local/bin
|
||||||
|
|
||||||
|
USER frappe
|
||||||
|
WORKDIR /home/frappe/frappe-bench
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue