1
0
mirror of https://github.com/rancher/os.git synced 2025-06-22 21:17:02 +00:00
os/Dockerfile.build-base

31 lines
877 B
Docker
Raw Normal View History

2015-07-23 13:53:01 +00:00
FROM debian:jessie
RUN apt-get update && \
apt-get -y dist-upgrade && \
apt-get -y install locales sudo vim less curl wget git rsync build-essential syslinux isolinux xorriso \
libblkid-dev libmount-dev libselinux1-dev genisoimage qemu-kvm python-pip
RUN ln -s /usr/bin/genisoimage /usr/bin/mkisofs
2015-07-23 13:53:01 +00:00
RUN locale-gen en_US.UTF-8
RUN curl -sSL https://get.docker.com/ | sh
#ENV LANG en_US.UTF-8
#ENV LANGUAGE en_US:en
#ENV LC_ALL en_US.UTF-8
#ENV TERM linux
RUN pip install tox
2015-07-23 13:53:01 +00:00
ENV GOLANG_VERSION 1.4.2
RUN curl -sSL https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz | tar -v -C /usr/src -xz
RUN cd /usr/src/go/src && ./make.bash --no-clean 2>&1
ENV GOROOT /usr/src/go
ENV PATH $GOROOT/bin:$PATH
RUN mkdir -p /go/src /go/bin && chmod -R 777 /go
ENV GOPATH /go
ENV PATH /go/bin:$PATH
RUN go get github.com/tools/godep
WORKDIR /go/src/github.com/rancherio/os