Dockerfile 1.5 KB

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