mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-10 15:20:55 +00:00
7c157aa487
* refactor(frappe-worker): Dockerfile * fix(frappe-worker): Cloning frappe repo * refactor(frappe-nginx): Dockerfile * refactor(erpnext-nginx): Dockerfile * chore(frappe-worker): Add space in Dockerfile * refactor(bench): Dockerfile * refactor(frappe-socketio): Dockerfile * ci(Test): Add `workflow_dispatch` trigger * fix(bench): Uncomment missing package * fix(bench): Replace legacy `libmariadbclient-dev` with `libmariadb-dev` * refactor(erpnext-nginx): Install script - Remove repetitive code - Don't explicitly install production deps (they are installed via plain `yarn` with dev deps) - Don't write to lockfiles * fix(erpnext-nginx): use -e flag, fix installation * fix(erpnext-nginx): Don't install unused wget * fix(frappe-nginx): Get newest certificates * fix: Install ca-certificates on erpnext-nginx instead of frappe-nginx * trigger ci * ci(test): Fix trigger duplicate * chore: Fix linting
36 lines
869 B
Docker
36 lines
869 B
Docker
ARG NODE_IMAGE_TAG=14-bullseye-slim
|
|
ARG DOCKER_REGISTRY_PREFIX=frappe
|
|
ARG IMAGE_TAG=develop
|
|
|
|
FROM node:${NODE_IMAGE_TAG} as builder
|
|
|
|
ARG GIT_REPO=https://github.com/frappe/erpnext
|
|
ARG GIT_BRANCH=develop
|
|
|
|
ARG FRAPPE_BRANCH=${GIT_BRANCH}
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install --no-install-recommends -y \
|
|
python2 \
|
|
git \
|
|
build-essential \
|
|
ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY build/erpnext-nginx/install_app.sh /install_app
|
|
RUN chmod +x /install_app \
|
|
&& /install_app erpnext ${GIT_REPO} ${GIT_BRANCH} ${FRAPPE_BRANCH}
|
|
|
|
|
|
FROM ${DOCKER_REGISTRY_PREFIX}/frappe-nginx:${IMAGE_TAG}
|
|
|
|
COPY --from=builder /home/frappe/frappe-bench/sites/ /var/www/html/
|
|
COPY --from=builder /rsync /rsync
|
|
|
|
RUN echo "erpnext" >> /var/www/html/apps.txt
|
|
|
|
VOLUME [ "/assets" ]
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
CMD ["nginx", "-g", "daemon off;"]
|