Dockerfile 853 B

1234567891011121314151617181920212223242526
  1. # NOTE: please keep it in sync with .github pipelines
  2. # Builder image
  3. FROM clojure:openjdk-11-tools-deps-1.10.1.727 as builder
  4. ARG DEBIAN_FRONTEND=noninteractive
  5. RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
  6. apt-get install -y nodejs
  7. RUN apt-get update && apt-get install ca-certificates && \
  8. wget --no-check-certificate -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
  9. echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
  10. apt-get update && \
  11. apt-get install -y yarn
  12. WORKDIR /data/
  13. # Build for static resources
  14. RUN git clone https://github.com/logseq/logseq.git && cd /data/logseq && yarn && yarn release && mv ./static ./public
  15. # Web App Runner image
  16. FROM nginx:stable-alpine
  17. COPY --from=builder /data/logseq/public /usr/share/nginx/html