You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
785 B

  1. FROM alpine:3.12
  2. ENV CYCLOSUI_RELEASE=2.0.0
  3. RUN apk add wget npm
  4. # COPY ./patches/*.patch /tmp
  5. RUN mkdir -p /opt/apps/cyclos-ui && \
  6. cd /opt/apps/cyclos-ui && \
  7. wget "https://github.com/cyclosproject/cyclos4-ui/archive/${CYCLOSUI_RELEASE}.tar.gz" && \
  8. tar -xzf "${CYCLOSUI_RELEASE}.tar.gz" && \
  9. rm "${CYCLOSUI_RELEASE}.tar.gz" && \
  10. mv cyclos4-ui-"${CYCLOSUI_RELEASE}"/* cyclos4-ui-"${CYCLOSUI_RELEASE}"/.[a-z]* . && \
  11. rmdir cyclos4-ui-"${CYCLOSUI_RELEASE}" && \
  12. # cat /tmp/*.patch | patch -p1 && \
  13. # mkdir -p /etc/cyclos-ui /var/lib/cyclos-ui && \
  14. # ln -sf /var/lib/cyclos-ui /opt/apps/cyclos-ui/storage
  15. true
  16. RUN cd /opt/apps/cyclos-ui && \
  17. npm install
  18. RUN cd /opt/apps/cyclos-ui && \
  19. npm run generate
  20. WORKDIR /opt/apps/cyclos-ui