forked from leftshine/epicgame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.apprise
34 lines (30 loc) · 888 Bytes
/
Dockerfile.apprise
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
# Builder stage
FROM node:16-alpine3.12 as builder
# Install dependencies for building node modules
# python3, g++, make: required by node-gyp
# git: required by check-update-github
WORKDIR /app
COPY ./package.json ./package.json
RUN apk add --no-cache --virtual \
.gyp \
python3=~3.8 \
make=~4.3 \
g++=~9.3 \
git=~2.26 \
&& npm install --only=production \
&& apk del .gyp
# App stage
FROM node:16-alpine3.12 as app
# Install apprise
RUN apk add --no-cache \
python3=~3.8 \
py3-pip=~20.1 \
py3-cryptography=~2.9 \
&& pip3 --no-cache-dir install apprise==0.9.5.1
WORKDIR /app
COPY . /app
COPY --from=builder /app/node_modules ./node_modules
# Create empty history.json, disable loop in container
RUN echo "{}" > data/history.json \
&& sed -i 's/"loop": true/"loop": false/g' data/config.json
CMD ["npm", "start", "--no-update-notifier"]