Dockerfile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # NOTE: please keep it in sync with .github pipelines
  2. # NOTE: during testing make sure to change the branch below
  3. # NOTE: before running the build-docker GH action edit
  4. # build-docker.yml and change the release channel from :latest to :testing
  5. # Builder image
  6. FROM clojure:temurin-11-tools-deps-1.11.1.1208-bullseye-slim as builder
  7. ARG DEBIAN_FRONTEND=noninteractive
  8. # Install reqs
  9. RUN apt-get update && apt-get install -y --no-install-recommends \
  10. curl \
  11. ca-certificates \
  12. apt-transport-https \
  13. gpg
  14. # install NodeJS & yarn
  15. RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
  16. RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | \
  17. tee /etc/apt/trusted.gpg.d/yarn.gpg && \
  18. echo "deb https://dl.yarnpkg.com/debian/ stable main" | \
  19. tee /etc/apt/sources.list.d/yarn.list && \
  20. apt-get update && apt-get install -y nodejs yarn
  21. WORKDIR /data
  22. # build Logseq static resources
  23. RUN git clone -b master https://github.com/logseq/logseq.git .
  24. RUN yarn config set network-timeout 240000 -g && yarn install
  25. RUN yarn release
  26. # Web App Runner image
  27. FROM nginx:1.24.0-alpine3.17
  28. COPY --from=builder /data/static /usr/share/nginx/html