Dockerfile 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. # NOTE: please keep it in sync with .github pipelines
  2. # NOTE: during testing make sure to change the branch below
  3. # NOTE: before runing the build-docker GH action edit
  4. # build-docker.yml and change the release channel to testing
  5. # Builder image
  6. FROM clojure:openjdk-11-tools-deps-1.10.1.727 as builder
  7. ARG DEBIAN_FRONTEND=noninteractive
  8. RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
  9. apt-get install -y nodejs
  10. RUN apt-get update && apt-get install ca-certificates && \
  11. wget --no-check-certificate -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
  12. echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
  13. apt-get update && apt-get install -y yarn
  14. WORKDIR /data
  15. RUN git clone -b fix/docker-bulid-timeout https://github.com/logseq/logseq.git .
  16. RUN yarn install --network-timeout 100000
  17. # Build static resources
  18. RUN gulp build && yarn cljs:release
  19. # Web App Runner image
  20. FROM nginx:stable-alpine
  21. COPY --from=builder /data/static /usr/share/nginx/html