Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 790 Bytes
FROM golang:latest
RUN apt-get update && apt-get -y install apt-transport-https
RUN curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
RUN echo 'deb https://deb.nodesource.com/node_4.x jessie main' > /etc/apt/sources.list.d/nodesource.list
RUN apt-get update && apt-get -y install nodejs
RUN mkdir -p /go/src/gitlab.com/tamasd && cd /go/src/gitlab.com/tamasd && git clone --branch 1.0-alpha.0 https://gitlab.com/tamasd/ab.git
RUN cd /go/src/gitlab.com/tamasd/ab && go get ./... ; exit 0
RUN go get github.com/Pronovix/walkhub-service
WORKDIR /go/src/github.com/Pronovix/walkhub-service
RUN echo '{}' > config.json
RUN npm install
RUN go install github.com/Pronovix/walkhub-service/cmd/walkhub
ENTRYPOINT npm run webpack && /go/bin/walkhub
EXPOSE 80
EXPOSE 443