-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
39 lines (27 loc) · 1.15 KB
/
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
## This one is based on Debian
FROM golang:1.11-alpine
RUN apk add --update --no-cache \
supervisor curl cmake fann-dev wget unzip python3-dev python3 swig \
alpine-sdk \
ca-certificates \
tzdata
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh && \
go get -v github.com/oxequa/realize github.com/alecthomas/gometalinter && \
gometalinter --install
RUN mkdir /fann && \
wget -O /fann/fann.zip http://sourceforge.net/projects/fann/files/fann/2.2.0/FANN-2.2.0-Source.zip/download && \
unzip /fann/fann.zip -d /fann && \
cd /fann/FANN-2.2.0-Source && cmake . && make install
RUN pip3 install --upgrade pip && pip3 install flask padatious
ENV WORKDIR=/go/src/github.com/avarabyeu/rpquiz/
WORKDIR $WORKDIR
#COPY glide.lock glide.yaml Makefile ./
COPY Gopkg.toml Gopkg.lock Makefile ./
COPY rpQuestions.json ${WORKDIR}
RUN dep ensure --vendor-only
#RUN make build
ENV VOCAB_DIR=${WORKDIR}/nlp/vocab/en-us
ENV QUESTION_FILE=${WORKDIR}/rpQuestions.json
## Building python stuff
ADD supervisor-dev.ini /etc/supervisor-dev.ini
CMD ["/usr/bin/supervisord", "--nodaemon", "--configuration", "/etc/supervisor-dev.ini"]