-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (36 loc) · 854 Bytes
/
Dockerfile
File metadata and controls
43 lines (36 loc) · 854 Bytes
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
41
42
43
FROM mhart/alpine-node:6.7.0
# Install required dependencies (Alpine Linux packages)
RUN apk update && \
apk add --no-cache \
cmake \
g++ \
gcc \
gd-dev \
git \
libev-dev \
libevent-dev \
libuv-dev \
make \
openssl-dev \
perl \
python
RUN git clone git://github.com/couchbase/libcouchbase.git && \
cd libcouchbase && \
git checkout 2.5.8 && \
mkdir build && \
cd build && \
../cmake/configure && \
make && \
make install && \
cd ..
# Copy required stuff
ADD . .
# If you need npm, don't use a base tag
RUN mkdir -p /root/.microcrawler && \
touch /root/.microcrawler/token.jwt && \
npm install
# RUN npm install -g babel-cli gulp
RUN npm run gulp && \
mkdir -p /root/.microcrawler && \
touch /root/.microcrawler/token.jwt
ENTRYPOINT ["./bin/microcrawler-worker.js"]