1FROM golang:1.10.0-alpine
2
3# cache buster
4RUN echo 4
5
6# git is needed for "go get" below
7RUN apk add --no-cache git make
8
9# these are my standard testing / linting tools
10RUN /bin/true \
11    && go get -u github.com/golang/dep/cmd/dep \
12    && go get -u github.com/alecthomas/gometalinter \
13    && gometalinter --install \
14    && rm -rf /go/src /go/pkg
15#
16# * SCOWL word list
17#
18# Downloads
19#  http://wordlist.aspell.net/dicts/
20#  --> http://app.aspell.net/create
21#
22
23# use en_US large size
24# use regular size for others
25ENV SOURCE_US_BIG http://app.aspell.net/create?max_size=70&spelling=US&max_variant=2&diacritic=both&special=hacker&special=roman-numerals&download=wordlist&encoding=utf-8&format=inline
26
27# should be able tell difference between English variations using this
28ENV SOURCE_US http://app.aspell.net/create?max_size=60&spelling=US&max_variant=1&diacritic=both&download=wordlist&encoding=utf-8&format=inline
29ENV SOURCE_GB_ISE http://app.aspell.net/create?max_size=60&spelling=GBs&max_variant=2&diacritic=both&download=wordlist&encoding=utf-8&format=inline
30ENV SOURCE_GB_IZE http://app.aspell.net/create?max_size=60&spelling=GBz&max_variant=2&diacritic=both&download=wordlist&encoding=utf-8&format=inline
31ENV SOURCE_CA http://app.aspell.net/create?max_size=60&spelling=CA&max_variant=2&diacritic=both&download=wordlist&encoding=utf-8&format=inline
32
33RUN /bin/true \
34  && mkdir /scowl-wl \
35  && wget -O /scowl-wl/words-US-60.txt ${SOURCE_US} \
36  && wget -O /scowl-wl/words-GB-ise-60.txt ${SOURCE_GB_ISE}
37
38