Dockerfile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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. build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
  15. # install NodeJS & pnpm
  16. RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - && \
  17. apt-get update && apt-get install -y nodejs && \
  18. corepack enable && corepack prepare [email protected] --activate
  19. WORKDIR /data
  20. # build Logseq static resources
  21. RUN git clone -b master https://github.com/logseq/logseq.git .
  22. RUN pnpm install --config.network-timeout=240000
  23. RUN pnpm release
  24. # Web App Runner image
  25. FROM nginx:1.24.0-alpine3.17
  26. COPY --from=builder /data/static /usr/share/nginx/html