Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fuchsia OS build env Dockerfile
FROM ubuntu:latest
MAINTAINER Mindon Feng <mindon@live.com>
ENV INSTALLER apt-get install -y --no-install-recommends
WORKDIR /root
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update
RUN $INSTALLER python2.7 \
git \
curl \
ca-certificates \
unzip \
xz-utils \
gsutil \
make \
gcc \
libglib2.0 \
ninja-build \
gcc \
rename
RUN ln -s /usr/bin/python2.7 /usr/bin/python
RUN curl -O https://dl.google.com/go/go1.11.4.linux-amd64.tar.gz \
&& tar -C /usr/local -xzf go1.11.4.linux-amd64.tar.gz \
&& rm -f go1.11.4.linux-amd64.tar.gz
ENV PATH=$PATH:/usr/local/go/bin
RUN curl -s "https://fuchsia.googlesource.com/scripts/+/master/bootstrap?format=TEXT" | base64 --decode > bootstrap
RUN rm -rf ~/.cache/pip \
/var/cache/apt/archives \
/var/lib/apt/lists/* \
/tmp/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.