-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathDockerfile
35 lines (26 loc) · 1019 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
24
25
26
27
28
29
30
31
32
33
34
35
FROM ubuntu:16.04
MAINTAINER Logan Hanks <[email protected]>
ENV PATH /root/go/src/euphoria.io/heim/client/node_modules/.bin:/usr/lib/go-1.10/bin:$PATH
# install bazel and upgrade OS
RUN apt-get update && apt-get dist-upgrade -y
RUN apt-get install -y openjdk-8-jdk curl
RUN echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" > /etc/apt/sources.list.d/bazel.list
RUN curl https://bazel.build/bazel-release.pub.gpg | apt-key add -
RUN apt-get update
RUN apt-get install -y bazel
# install node and npm
RUN apt-get install -y nodejs nodejs-legacy npm
# install golang
RUN apt-get install -y git golang-1.10
# install phantomjs dependency
RUN apt-get install -y libfontconfig
# copy source code to /srv/heim/client/src
ADD ./ /root/go/src/euphoria.io/heim/
# install client dependencies
WORKDIR /root/go/src/euphoria.io/heim/client
RUN npm install
# build client
ENV NODE_ENV production
RUN gulp build
# build server
RUN bazel build --workspace_status_command=./bzl/status.sh //heimctl