FROM node:20-buster-slim RUN echo 'deb http://archive.debian.org/debian buster-backports main' >> /etc/apt/sources.list.d/backports.list &&\ apt-get update # apt-cache policy git RUN apt-get -t buster-backports install -y git=1:2.30.2-1~bpo10+1 &&\ # apt-get -t buster-backports install -y git-lfs=2.13.1-2~bpo10+1 &&\ #为了兼容arm平台,这边先不限定版本,直接用latest apt-get -t buster-backports install -y git-lfs &&\ apt-get install -y coreutils ca-certificates gettext-base &&\ git lfs install &&\ update-ca-certificates # orange-ci/orange-ci#2786 RUN apt-get reinstall -y --allow-downgrades libcurl3-gnutls/buster WORKDIR /module/ ENV NODE_ENV=production COPY package.json package-lock.json ./ RUN npm ci --registry=https://mirrors.cloud.tencent.com/npm/ COPY bin/ /bin/ COPY conf/ /root/ ENV NODE_PATH="/module/node_modules" ENV LANG=C.UTF-8 VOLUME /yyds ENTRYPOINT /bin/entrypoint.sh