mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-22 15:55:09 +00:00
implementing codacy sugestions
This commit is contained in:
parent
33b8dfea70
commit
8493739787
1 changed files with 6 additions and 5 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -7,10 +7,10 @@ LABEL author=frappé
|
||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
|
|
||||||
# Install all neccesary packages
|
# Install all neccesary packages
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends iputils-ping git build-essential python-setuptools \
|
RUN apt-get update && apt-get install -y --no-install-recommends iputils-ping git build-essential python-setuptools python-dev libffi-dev libssl-dev \
|
||||||
libssl-dev libjpeg8-dev redis-tools software-properties-common libxrender1 libxext6 xfonts-75dpi xfonts-base \
|
libjpeg8-dev redis-tools redis-server software-properties-common libxrender1 libxext6 xfonts-75dpi xfonts-base zlib1g-dev \
|
||||||
python-dev libffi-dev libfreetype6-dev liblcms2-dev libwebp-dev python-tk libsasl2-dev libldap2-dev libtiff5-dev \
|
libfreetype6-dev liblcms2-dev libwebp-dev python-tk apt-transport-https libsasl2-dev libldap2-dev libtiff5-dev tcl8.6-dev \
|
||||||
tk8.6-dev wget libmysqlclient-dev mariadb-client mariadb-common curl rlwrap wkhtmltopdf python-pip sudo \
|
tk8.6-dev wget libmysqlclient-dev mariadb-client mariadb-common curl rlwrap redis-tools nano wkhtmltopdf python-pip vim sudo \
|
||||||
&& apt-get clean && 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 +31,6 @@ RUN pip install -e git+https://github.com/frappe/bench.git#egg=bench \
|
||||||
&& rm -rf ~/.cache/pip
|
&& rm -rf ~/.cache/pip
|
||||||
|
|
||||||
USER frappe
|
USER frappe
|
||||||
ADD --chown=frappe:frappe ./frappe-bench /home/frappe/frappe-bench
|
# Add some bench files
|
||||||
|
COPY --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