1 Star 0 Fork 97

Mmagic / koodo-reader

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 835 Bytes
一键复制 编辑 原始数据 按行查看 历史
FROM node:14-slim as builder
RUN apt-get update && apt-get install -y jq curl wget python
WORKDIR /app
### Get the latest release source code tarball
RUN tarball_url=$(curl -s https://api.github.com/repos/troyeguo/koodo-reader/releases/latest | jq -r ".tarball_url") \
&& wget -qO- $tarball_url \
| tar xvfz - --strip 1
### --network-timeout 1000000 as a workaround for slow devices
### when the package being installed is too large, Yarn assumes it's a network problem and throws an error
RUN yarn --network-timeout 1000000
### Separate `yarn build` layer as a workaround for devices with low RAM.
### If build fails due to OOM, `yarn install` layer will be already cached.
RUN yarn build
### Nginx or Apache can also be used, Caddy is just smaller in size
FROM caddy:latest
COPY --from=builder /app/build /usr/share/caddy
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/hust-miao/koodo-reader.git
git@gitee.com:hust-miao/koodo-reader.git
hust-miao
koodo-reader
koodo-reader
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891