3 Star 0 Fork 0

Gitee 极速下载 / dorea

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/mrxiaozhuox/dorea
克隆/下载
Dockerfile 965 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
YuKun Liu 提交于 2021-12-26 00:41 . feat: dockerfile
# build dorea-core latest version
# dorea: https://github.com/doreadb/dorea.git
# crate: https://crates.io/crates/dorea
# document: https://dorea.mrxzx.info
# author: ZhuoEr Liu <mrxzx@qq.com> [ https://blog.wwsg18.com ]
# dorea-server --hostname 0.0.0.0 --port 3450 --workspace .
# dorea key-value database
# use rust(latest version)
FROM rust:latest
# some information
LABEL MAINTAINER="ZhuoEr Liu <mrxzx@qq.com>"
ENV DOREA_VERSION="3.1"
ENV DOREA_WEBSITE="https://dorea.mrxzx.info"
# dorea-core work dir
WORKDIR /usr/src/dorea-core
# copy environment file to ".cargo"
COPY env/ .cargo/
# copy project to "dorea-core"
COPY . .
# try to install cargo package: (dorea-core)
RUN cargo install --path .
# expose port: 3450 (dorea-port) 3451 (dorea-service)
EXPOSE 3450
EXPOSE 3451
# volume dorea storage dir (data and config info)
VOLUME /root/.local/share/Dorea
# try to start the dorea server ( 0.0.0.0:3450 )
CMD ["dorea-server", "--hostname", "0.0.0.0"]
Rust
1
https://gitee.com/mirrors/dorea.git
git@gitee.com:mirrors/dorea.git
mirrors
dorea
dorea
master

搜索帮助

14c37bed 8189591 565d56ea 8189591