1 Star 0 Fork 1

liuyibin23/frappe_docker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
# Frappe Bench Dockerfile
FROM debian:9.6-slim
LABEL author=frappé
# Set locale C.UTF-8 for mariadb and general locale data
ENV LANG C.UTF-8
COPY sources.list /etc/apt/
RUN chmod 644 /etc/apt/sources.list
# Install all neccesary packages
RUN apt-get update && apt-get install -y --no-install-suggests --no-install-recommends build-essential cron curl git iputils-ping libffi-dev \
liblcms2-dev libldap2-dev libmariadbclient-dev libsasl2-dev libssl-dev libtiff5-dev libwebp-dev mariadb-client \
python-dev python-pip python-setuptools python-tk redis-tools rlwrap software-properties-common sudo tk8.6-dev \
vim xfonts-75dpi xfonts-base wget wkhtmltopdf \
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
&& pip install --upgrade setuptools pip --no-cache \
&& curl https://deb.nodesource.com/node_10.x/pool/main/n/nodejs/nodejs_10.10.0-1nodesource1_amd64.deb > node.deb \
&& dpkg -i node.deb \
&& rm node.deb \
&& npm install -g yarn
# Add frappe user and setup sudo
RUN useradd -ms /bin/bash -G sudo frappe \
&& printf '# Sudo rules for frappe\nfrappe ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/frappe
WORKDIR /home/frappe
RUN mkdir -p /home/frappe/.pip
COPY pip.conf /home/frappe/.pip/
# Install bench
RUN pip install -e git+https://gitee.com/liuyibin23/bench.git#egg=bench --no-cache
USER frappe
# Add some bench files
COPY --chown=frappe:frappe ./frappe-bench /home/frappe/frappe-bench
WORKDIR /home/frappe/frappe-bench
EXPOSE 8000 9000 6787
VOLUME [ "/home/frappe/frappe-bench" ]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liuyibin23/frappe_docker.git
git@gitee.com:liuyibin23/frappe_docker.git
liuyibin23
frappe_docker
frappe_docker
master

搜索帮助