containerfiles/erpnext/backend.Containerfile

18 lines
557 B
Plaintext

ARG ERPNEXT_VERSION
FROM alpine:latest
RUN \
cd /tmp; \
apk add tar wget; \
wget https://github.com/frappe/hrms/archive/refs/tags/v1.0.0.tar.gz -O "release.tgz"; \
mkdir "release"; \
tar -zxvf "release.tgz" -C "release"; \
mv "$(find release -mindepth 1 -maxdepth 1 -type d)" "/app";
FROM frappe/erpnext-worker:${ERPNEXT_VERSION}
ARG APP_NAME="hrms"
USER root
COPY --from=0 /app/ ../apps/${APP_NAME}/
RUN chown -R frappe:frappe ../apps/${APP_NAME}/
RUN --mount=type=cache,target=/root/.cache/pip install-app ${APP_NAME}
USER frappe