Created
September 2, 2020 07:13
-
-
Save mixj93/9bc9a85c39fb9d0e37fcb3647f938a9b to your computer and use it in GitHub Desktop.
Base image with node and golang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
RUN echo 'deb http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse\n\ | |
deb http://mirrors.163.com/ubuntu/ xenial-security main restricted universe multiverse\n\ | |
deb http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse\n\ | |
deb http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse\n\ | |
deb http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse\n\ | |
deb-src http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse\n\ | |
deb-src http://mirrors.163.com/ubuntu/ xenial-security main restricted universe multiverse\n\ | |
deb-src http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse\n\ | |
deb-src http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse\n\ | |
deb-src http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse' > /etc/apt/sources.list | |
RUN apt-get update \ | |
&& apt-get install -y vim curl gnupg net-tools dnsutils ca-certificates tzdata telnet netcat wget software-properties-common bzip2 xz-utils\ | |
&& apt-get clean | |
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ | |
dpkg-reconfigure -f noninteractive tzdata | |
RUN curl -sL https://deb.nodesource.com/setup_current.x | bash - \ | |
&& apt-get -y install nodejs | |
RUN add-apt-repository ppa:longsleep/golang-backports \ | |
&& apt-get update \ | |
&& apt-get -y install golang-go | |
RUN npm install -g yarn | |
RUN node -v \ | |
&& npm -v \ | |
&& yarn -v \ | |
&& go version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment