2021-11-03 16:48:01 +03:00
|
|
|
ARG NODE_IMAGE_TAG=14-bullseye-slim
|
2021-01-08 17:45:22 +05:30
|
|
|
ARG DOCKER_REGISTRY_PREFIX=frappe
|
2021-05-21 14:30:55 +05:30
|
|
|
ARG IMAGE_TAG=develop
|
|
|
|
|
2021-11-10 02:13:46 +03:00
|
|
|
FROM node:${NODE_IMAGE_TAG} as builder
|
2020-02-10 13:30:54 +05:30
|
|
|
|
2021-05-21 14:30:55 +05:30
|
|
|
ARG GIT_REPO=https://github.com/frappe/erpnext
|
|
|
|
ARG GIT_BRANCH=develop
|
2021-11-10 02:13:46 +03:00
|
|
|
|
2021-06-08 16:01:08 +05:30
|
|
|
ARG FRAPPE_BRANCH=${GIT_BRANCH}
|
2021-05-21 14:30:55 +05:30
|
|
|
|
2021-11-10 02:13:46 +03:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install --no-install-recommends -y \
|
|
|
|
python2 \
|
|
|
|
git \
|
|
|
|
build-essential \
|
|
|
|
ca-certificates \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2021-01-05 17:48:11 +05:30
|
|
|
COPY build/erpnext-nginx/install_app.sh /install_app
|
2021-11-10 02:13:46 +03:00
|
|
|
RUN chmod +x /install_app \
|
|
|
|
&& /install_app erpnext ${GIT_REPO} ${GIT_BRANCH} ${FRAPPE_BRANCH}
|
2020-02-10 13:30:54 +05:30
|
|
|
|
|
|
|
|
2021-05-21 14:30:55 +05:30
|
|
|
FROM ${DOCKER_REGISTRY_PREFIX}/frappe-nginx:${IMAGE_TAG}
|
2020-03-05 02:28:42 +00:00
|
|
|
|
2021-11-19 20:41:23 +05:30
|
|
|
COPY --from=builder --chown=1000:1000 /home/frappe/frappe-bench/sites/ /var/www/html/
|
2021-11-10 02:13:46 +03:00
|
|
|
COPY --from=builder /rsync /rsync
|
|
|
|
|
2020-06-29 23:28:10 +05:30
|
|
|
RUN echo "erpnext" >> /var/www/html/apps.txt
|
2020-02-10 13:30:54 +05:30
|
|
|
|
|
|
|
VOLUME [ "/assets" ]
|
|
|
|
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|