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