-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
36 lines (31 loc) · 893 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
36
FROM ubuntu:17.10
RUN apt-get update && apt-get install -y \
ca-certificates \
curl \
git-core \
gcc \
binutils \
npm \
nodejs \
golang-glide
RUN curl -s https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz | tar -v -C /usr/local -xz
RUN mkdir -p /go
#RUN ln -s /usr/bin/nodejs /usr/bin/node
ENV GOPATH /go
ENV GOROOT /usr/local/go
ENV PATH /usr/local/go/bin:/go/bin:/usr/local/bin:$PATH
WORKDIR $GOPATH
RUN go get -u github.com/EUDAT-GEF/GEF/; exit 0
WORKDIR $GOPATH/src/github.com/EUDAT-GEF/GEF
RUN mkdir -p tmp \
mkdir -p tmp/webui \
mkdir -p build
RUN make dependencies
RUN make webui
RUN go build -o ./gef_linux ./gefserver
WORKDIR $GOPATH/src/github.com/EUDAT-GEF/GEF/webui
RUN ./copy_files.sh
WORKDIR $GOPATH/src/github.com/EUDAT-GEF/GEF
RUN cp -r webui/app tmp/webui/
RUN cp -r gef_linux tmp/
CMD ["cp", "-r", "tmp/.", "build"]