1 Star 0 Fork 24

山药/ceresdb

forked from CeresDB/ceresdb 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 837 Bytes
一键复制 编辑 原始数据 按行查看 历史
## Builder
ARG RUST_VERSION=1.59.0
FROM rust:${RUST_VERSION}-slim-bullseye as build
# cache mounts below may already exist and owned by root
USER root
RUN apt update && apt install --yes git gcc g++ libssl-dev pkg-config cmake protobuf-compiler && rm -rf /var/lib/apt/lists/*
COPY . /horaedb
WORKDIR /horaedb
RUN make build
## HoraeDB
FROM ubuntu:20.04
RUN useradd -m -s /bin/bash ceres
RUN apt update && \
apt install --yes curl gdb iotop cron vim less net-tools && \
apt clean
ENV RUST_BACKTRACE 1
COPY --from=build /horaedb/target/release/horaedb-server /usr/bin/horaedb-server
RUN chmod +x /usr/bin/horaedb-server
COPY ./docker/entrypoint.sh /entrypoint.sh
COPY ./docs/minimal.toml /etc/horaedb/horaedb.toml
COPY ./docker/tini /tini
RUN chmod +x /tini
ARG USER=horae
ENTRYPOINT ["/tini", "--", "/entrypoint.sh"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/zen0fpy17/ceresdb.git
git@gitee.com:zen0fpy17/ceresdb.git
zen0fpy17
ceresdb
ceresdb
main

搜索帮助