Dockerfile 626 B

123456789101112131415
  1. FROM node:24.14.1
  2. # Corepack setup, shared between all the images.
  3. ENV PATH="/overleaf/node_modules/.bin:$PATH"
  4. ENV COREPACK_HOME=/opt/corepack
  5. RUN corepack enable && corepack install -g yarn@4.14.1
  6. ENV COREPACK_ENABLE_NETWORK=0
  7. RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
  8. && echo \
  9. "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" \
  10. > /etc/apt/sources.list.d/docker.list \
  11. && apt-get update \
  12. && apt-get install -y docker-ce-cli docker-compose-plugin \
  13. && rm -rf /var/lib/apt/lists/*