加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 687 Bytes
一键复制 编辑 原始数据 按行查看 历史
Shaun Jackman 提交于 2016-04-05 16:21 . Dockerfile: Set the git remote URL
FROM ubuntu
MAINTAINER Shaun Jackman <sjackman@gmail.com>
RUN apt-get update \
&& apt-get install -y curl g++ git make ruby2.0 ruby2.0-dev \
&& ln -sf ruby2.0 /usr/bin/ruby \
&& ln -sf gem2.0 /usr/bin/gem
RUN localedef -i en_US -f UTF-8 en_US.UTF-8 \
&& useradd -m -s /bin/bash linuxbrew \
&& echo 'linuxbrew ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers
ADD . /home/linuxbrew/.linuxbrew
RUN chown -R linuxbrew: /home/linuxbrew/.linuxbrew \
&& cd /home/linuxbrew/.linuxbrew \
&& git remote set-url origin https://github.com/Linuxbrew/linuxbrew.git
USER linuxbrew
WORKDIR /home/linuxbrew
ENV PATH=/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH \
SHELL=/bin/bash
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化