代码拉取完成,页面将自动刷新
# 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"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。