1 Star 0 Fork 0

KKDP/gaia

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
Marko 提交于 2020-05-26 15:47 . add user to docker image (#408)
# Simple usage with a mounted data directory:
# > docker build -t gaia .
# > docker run -it -p 46657:46657 -p 46656:46656 -v ~/.gaiad:/gaia/.gaiad -v ~/.gaiacli:/gaia/.gaiacli gaia gaiad init
# > docker run -it -p 46657:46657 -p 46656:46656 -v ~/.gaiad:/gaia/.gaiad -v ~/.gaiacli:/gaia/.gaiacli gaia gaiad start
FROM golang:alpine AS build-env
# Set up dependencies
ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python
# Set working directory for the build
WORKDIR /go/src/github.com/cosmos/gaia
# Add source files
COPY . .
# Install minimum necessary dependencies, build Cosmos SDK, remove packages
RUN apk add --no-cache $PACKAGES && \
make install
# Final image
FROM alpine:edge
ENV GAIA /gaia
# Install ca-certificates
RUN apk add --update ca-certificates
RUN addgroup gaiauser && \
adduser -S -G gaiauser gaiauser -h "$GAIA"
USER gaiauser
WORKDIR $GAIA
# Copy over binaries from the build-env
COPY --from=build-env /go/bin/gaiad /usr/bin/gaiad
COPY --from=build-env /go/bin/gaiacli /usr/bin/gaiacli
# Run gaiad by default, omit entrypoint to ease using container with gaiacli
CMD ["gaiad"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jjhoc/gaia.git
git@gitee.com:jjhoc/gaia.git
jjhoc
gaia
gaia
master

搜索帮助