mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-21 15:25:09 +00:00
added a .dockerignore and fixed the dockerfile up a bit
This commit is contained in:
parent
a7f564e222
commit
cf3c4dc173
2 changed files with 15 additions and 10 deletions
7
.dockerignore
Normal file
7
.dockerignore
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# frappe_docker .dockerignore file
|
||||||
|
|
||||||
|
conf/*
|
||||||
|
.travis.yml
|
||||||
|
test.py
|
||||||
|
dbench
|
||||||
|
docker-*.yml
|
||||||
18
Dockerfile
18
Dockerfile
|
|
@ -1,18 +1,16 @@
|
||||||
|
# Frappe Bench Dockerfile
|
||||||
#bench Dockerfile
|
|
||||||
|
|
||||||
FROM ubuntu:16.04
|
FROM ubuntu:16.04
|
||||||
LABEL MAINTAINER frappé
|
LABEL author=frappé
|
||||||
|
|
||||||
USER root
|
|
||||||
# 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
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y iputils-ping git build-essential python-setuptools python-dev libffi-dev libssl-dev libjpeg8-dev \
|
RUN apt-get update && apt-get install -y iputils-ping git build-essential python-setuptools python-dev libffi-dev libssl-dev \
|
||||||
redis-tools redis-server software-properties-common libxrender1 libxext6 xfonts-75dpi xfonts-base zlib1g-dev libfreetype6-dev \
|
libjpeg8-dev redis-tools redis-server software-properties-common libxrender1 libxext6 xfonts-75dpi xfonts-base zlib1g-dev \
|
||||||
liblcms2-dev libwebp-dev python-tk apt-transport-https libsasl2-dev libldap2-dev libtiff5-dev tcl8.6-dev tk8.6-dev \
|
libfreetype6-dev liblcms2-dev libwebp-dev python-tk apt-transport-https libsasl2-dev libldap2-dev libtiff5-dev tcl8.6-dev \
|
||||||
wget libmysqlclient-dev mariadb-client mariadb-common curl rlwrap redis-tools nano wkhtmltopdf python-pip vim sudo && apt-get clean \
|
tk8.6-dev wget libmysqlclient-dev mariadb-client mariadb-common curl rlwrap redis-tools nano wkhtmltopdf python-pip vim sudo \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
RUN pip install --upgrade setuptools pip && rm -rf ~/.cache/pip
|
RUN pip install --upgrade setuptools pip && rm -rf ~/.cache/pip
|
||||||
RUN useradd -ms /bin/bash -G sudo frappe && printf '# User rules for frappe\nfrappe ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/frappe
|
RUN useradd -ms /bin/bash -G sudo frappe && printf '# User rules for frappe\nfrappe ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/frappe
|
||||||
|
|
||||||
|
|
@ -31,5 +29,5 @@ RUN pip install -e bench-repo && rm -rf ~/.cache/pip \
|
||||||
&& npm install -g yarn
|
&& npm install -g yarn
|
||||||
|
|
||||||
USER frappe
|
USER frappe
|
||||||
ADD ./frappe-bench /home/frappe/frappe-bench
|
ADD --chown=frappe:frappe ./frappe-bench /home/frappe/frappe-bench
|
||||||
WORKDIR /home/frappe/frappe-bench
|
WORKDIR /home/frappe/frappe-bench
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue