加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 541 Bytes
一键复制 编辑 原始数据 按行查看 历史
FROM debian:sid-slim as builder
ENV DEBIAN_FRONTEND=noninteractive
RUN cat <<'EOF' > /etc/apt/sources.list.d/debian.sources
Types: deb
URIs: http://mirror.iscas.ac.cn/debian
Suites: sid
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
EOF
RUN apt update && \
apt install -y node-corepack nodejs
RUN corepack enable pnpm
COPY ./ /src/
WORKDIR /src/
RUN pnpm install
RUN pnpm run build
FROM nginx:latest
COPY --from=builder /src/public /usr/share/nginx/html
EXPOSE 80
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化