3 Star 2 Fork 1

Gitee 极速下载 / serverless-dns

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/serverless-dns/serverless-dns
克隆/下载
bun.Dockerfile 652 Bytes
一键复制 编辑 原始数据 按行查看 历史
Murtaza Aliakbar 提交于 2023-09-07 21:35 . bun: init
FROM oven/bun AS setup
WORKDIR /bun-dir
COPY . .
RUN bun build ./src/server-node.js --target node --outdir ./dist --entry-naming bun.mjs --format esm
RUN export BLOCKLIST_DOWNLOAD_ONLY=true && node ./dist/bun.mjs
FROM oven/bun AS runner
# env vals persist even at run-time: archive.is/QpXp2
# and overrides fly.toml env values
# get working dir in order
WORKDIR /app
COPY --from=setup /bun-dir/dist ./
COPY --from=setup /bun-dir/blocklists__ ./blocklists__
COPY --from=setup /bun-dir/dbip__ ./dbip__
# print files in work dir, must contain blocklists
RUN ls -Fla
# run with the default entrypoint (usually, bash or sh)
CMD ["bun", "run", "./bun.mjs"]
JavaScript
1
https://gitee.com/mirrors/serverless-dns.git
git@gitee.com:mirrors/serverless-dns.git
mirrors
serverless-dns
serverless-dns
main

搜索帮助