# syntax=docker/dockerfile:1.6 ARG APP_VERSION=latest FROM cloudron/base:5.0.0 AS builder WORKDIR /build # ----------------------------------------------------------------------------- # TODO: Fetch and build InvenTree # Example: # RUN git clone --depth 1 --branch "${APP_VERSION}" https://github.com/inventree/InvenTree.git source \ # && cd source \ # && npm ci \ # && npm run build # ----------------------------------------------------------------------------- FROM cloudron/base:5.0.0 LABEL org.opencontainers.image.source="https://github.com/inventree/InvenTree.git" LABEL org.opencontainers.image.description="Cloudron package for InvenTree" ENV APP_VERSION=${APP_VERSION} # ----------------------------------------------------------------------------- # TODO: Copy build artefacts from the builder stage # COPY --from=builder /build/source/dist /app/code # ----------------------------------------------------------------------------- COPY ./app /app/code COPY ./start.sh /app/pkg/start.sh COPY ./test /app/pkg/test RUN chmod +x /app/pkg/start.sh /app/pkg/test/smoke.sh \ && mkdir -p /app/data \ && chown -R cloudron:cloudron /app USER cloudron WORKDIR /app/code CMD ["/app/pkg/start.sh"]