-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·34 lines (27 loc) · 855 Bytes
/
Dockerfile
File metadata and controls
executable file
·34 lines (27 loc) · 855 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
FROM node:8-alpine
ARG PROJECT
ENV PROJECT ${PROJECT}
WORKDIR /usr/local/lib/${PROJECT}/raven/services/${PROJECT}
RUN apk add --no-cache \
cyrus-sasl-dev \
openssl-dev \
zlib-dev \
lz4-dev;
COPY package.json /usr/local/lib/${PROJECT}/raven/services/${PROJECT}/
COPY target/docker/common /usr/local/lib/${PROJECT}/raven/common/
RUN apk add --no-cache --virtual .build-deps \
gcc \
g++ \
python \
make \
bash \
libc-dev \
bsd-compat-headers \
py-setuptools \
ca-certificates \
musl-dev \
&& npm install --production --unsafe-perm --loglevel verbose \
&& apk del .build-deps
COPY src /usr/local/lib/${PROJECT}/raven/services/${PROJECT}/src/
COPY cert /usr/local/lib/${PROJECT}/raven/services/${PROJECT}/cert/
CMD [ "npm", "start" ]