-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
40 lines (30 loc) · 960 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
37
38
39
40
FROM debian:jessie
LABEL maintainer="[email protected]"
# Golang
RUN apt-get update && apt-get install -y \
curl \
git \
wget
ENV VERSION=1.9
ENV OS=linux
ENV ARCH=amd64
RUN wget https://storage.googleapis.com/golang/go$VERSION.$OS-$ARCH.tar.gz && \
tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz
ENV PATH=$PATH:/usr/local/go/bin
ENV GOPATH=/go
# Node
ENV HOME=.
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get install -y nodejs
RUN npm install -g gobble-cli
# build townsourced
RUN go get github.com/timshannon/townsourced && \
cd $GOPATH/src/github.com/timshannon/townsourced && \
go build -o townsourced && \
cd web && \
npm install && \
gobble build static -f && \
cd .. && \
echo '{"web":{"address": "http://localhost:8080"}}' > settings.json
ENTRYPOINT exec /go/src/github.com/timshannon/townsourced/townsourced -dir /go/src/github.com/timshannon/townsourced
EXPOSE 8080