2 Star 0 Fork 0

mirrors_sfackler/official-images

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 861 Bytes
一键复制 编辑 原始数据 按行查看 历史
FROM docker:stable-git
RUN apk add --no-cache \
# bash for running scripts
bash \
# go for compiling bashbrew
go libc-dev \
# ssl for downloading files
libressl
ENV GOPATH /go
ENV PATH $GOPATH/bin:$PATH
ENV DIR /usr/src/official-images
ENV PATH $DIR/bashbrew/go/bin:$PATH
ENV BASHBREW_LIBRARY $DIR/library
ENV BASHBREW_CACHE /bashbrew-cache
# make sure our default cache dir exists and is writable by anyone (similar to /tmp)
RUN mkdir -p "$BASHBREW_CACHE" \
&& chmod 1777 "$BASHBREW_CACHE"
# (this allows us to decide at runtime the exact uid/gid we'd like to run as)
WORKDIR $DIR
COPY . $DIR
RUN set -ex; \
cd bashbrew/go; \
export GOPATH="$PWD:$PWD/vendor"; \
cd src; \
go install -v ./...
VOLUME $BASHBREW_CACHE
RUN ln -s "$PWD/bashbrew/bashbrew-entrypoint.sh" /usr/local/bin/bashbrew-entrypoint.sh
ENTRYPOINT ["bashbrew-entrypoint.sh"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_sfackler/official-images.git
[email protected]:mirrors_sfackler/official-images.git
mirrors_sfackler
official-images
official-images
master

搜索帮助