1 Star 2 Fork 1

Rick / blueocean-plugin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile.build 2.68 KB
一键复制 编辑 原始数据 按行查看 历史
FROM ubuntu:16.04
ENV MAVEN_VERSION 3.5.4
ENV NODE_VERSION 10.13.0
ENV PHANTOMJS_VERSION 2.1.1
ARG UID=1000
ARG GID=1000
USER root
RUN apt-get update
#========================
# Miscellaneous packages
#========================
RUN apt-get update -qqy \
&& apt-get -qqy --no-install-recommends install \
sudo \
openjdk-8-jdk \
tar \
zip xz-utils \
curl wget \
git \
build-essential \
python \
iputils-ping \
net-tools \
locales \
libsass-dev \
&& rm -rf /var/lib/apt/lists/* \
&& sed -i 's/securerandom\.source=file:\/dev\/random/securerandom\.source=file:\/dev\/urandom/' ./usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/java.security
# Set utf-8 locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
#==========
# Maven
#==========
RUN curl -fsSL http://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MAVEN_VERSION/apache-maven-$MAVEN_VERSION-bin.tar.gz | tar xzf - -C /usr/share \
&& mv /usr/share/apache-maven-$MAVEN_VERSION /usr/share/maven \
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
ENV MAVEN_HOME /usr/share/maven
#===============
# Node and NPM
#===============
RUN wget --no-verbose https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz -O /opt/nodejs.tar.xz
RUN tar -C /usr/local --strip-components 1 -xJf /opt/nodejs.tar.xz
RUN mkdir /.npm && chmod 777 /.npm
#=============================================
# Misc packages needed by the ATH
#=============================================
RUN apt-get update -qqy \
&& apt-get -qqy --no-install-recommends install \
libxml2-utils \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
#=============================================
# Phantom JS
#=============================================
RUN wget --no-verbose -O - -L https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 \
| tar -xj --strip-components=1 -C /usr/local
#========================================
# Add normal user with passwordless sudo
#========================================
RUN sudo groupadd -r -g $GID bouser \
&& sudo useradd bouser -g $GID -u $UID --shell /bin/bash --create-home \
&& sudo usermod -a -G sudo bouser \
&& echo 'ALL ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers \
&& echo 'bouser:secret' | chpasswd
USER bouser
WORKDIR /home/bouser
#========================================
# Configure the local git user.
#========================================
RUN git config --global user.name "John Doe"
RUN git config --global user.email johndoe@example.com
#========================================
# Need ssh
#========================================
RUN sudo apt-get update -qqy && sudo apt-get install -y ssh
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/linuxsuren/blueocean-plugin.git
git@gitee.com:linuxsuren/blueocean-plugin.git
linuxsuren
blueocean-plugin
blueocean-plugin
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891