forked from rancher/cattle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (23 loc) · 917 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ibuildthecloud/ubuntu-core-base:14.04
RUN rm /etc/apt/apt.conf.d/no-cache
RUN apt-get update && apt-get install -y --no-install-recommends openjdk-7-jre-headless
RUN apt-get update && \
apt-get install -y --no-install-recommends openjdk-7-jdk maven python-pip \
git net-tools curl
RUN sed -i 's/^#deb-src/deb-src/g' /etc/apt/sources.list
RUN apt-get update && apt-get build-dep -y util-linux socat
RUN pip install --upgrade pip tox
RUN git clone --recursive https://github.com/cattleio/cattle.git /opt/cattle-git && \
cd /opt/cattle-git && \
git checkout master
RUN apt-get update && apt-get install -y npm
ENV HOME /root
RUN cd /opt/cattle-git && \
mvn install && \
mvn dependency:go-offline && \
mv /root/.m2 /opt/m2-base && \
rm -rf /opt/m2-base/repository/io/github/cattle
ADD . /opt/cattle
RUN /opt/cattle/cattle.sh build
EXPOSE 8080
CMD ["/opt/cattle/cattle.sh", "run"]