-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 630 Bytes
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 630 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
FROM keymetrics/pm2:latest-alpine
WORKDIR /app/sensorr
VOLUME /app/sensorr/config
VOLUME /app/sensorr/blackhole
COPY .babelrc package.json yarn.lock ecosystem.config.js webpack.*.js ./
COPY config.docker.json config.default.json
COPY bin ./bin
COPY server ./server
COPY shared ./shared
COPY src ./src
RUN mkdir -p config \
&& chmod 666 config \
&& mkdir -p blackhole \
&& chmod 660 blackhole \
&& apk add -U python make g++ \
&& yarn config set network-timeout 300000 \
&& yarn install \
&& yarn run build \
&& apk del python make g++ \
&& rm -rf /var/cache/apk/*
EXPOSE 5070
CMD [ "yarn", "run", "prod" ]