代码拉取完成,页面将自动刷新
FROM m.daocloud.io/docker.io/library/node:20 AS builder
WORKDIR /app
COPY ./packages/backend/dist /app
COPY ./packages/backend/package*.json ./
RUN npm install --omit=dev --registry=https://registry.npmmirror.com
RUN npm rebuild
# FROM m.daocloud.io/docker.io/library/debian:11-slim AS deb_extractor
# RUN cd /tmp && \
# apt-get update && apt-get download libicu-dev && \
# mkdir /dpkg && \
# for deb in *.deb; do dpkg --extract $deb /dpkg || exit 10; done
# FROM gcr.io/distroless/nodejs20-debian12
FROM m.daocloud.io/docker.io/library/node:20-bookworm-slim
WORKDIR /app
COPY --from=builder /app /app
# COPY --from=deb_extractor /dpkg /
RUN apt-get update && apt-get install -y libicu-dev ffmpeg
RUN npm install pm2 -g
EXPOSE 8899
CMD ["pm2-runtime", "server/index.js"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。