1 Star 0 Fork 0

webbabyking/mediago

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 791 Bytes
一键复制 编辑 原始数据 按行查看 历史
曹儒士子 提交于 2024-10-04 16:10 . fix: 🐛 merge video
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"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/webbabyking/mediago.git
[email protected]:webbabyking/mediago.git
webbabyking
mediago
mediago
master

搜索帮助