forked from wechaty/matrix-appservice
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
39 lines (32 loc) · 827 Bytes
/
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
#
# Wechat Matrix Appservice Bridge
#
# GitHub: https://github.com/wechaty/matrix-appservice-wechaty
# License: Apache-2.0
# Copyright: 2019, Huan LI <zixia@zixia.net>
#
FROM wechaty/wechaty
LABEL maintainer="Huan LI (李卓桓) <zixia@zixia.net>"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
dumb-init \
git \
jq \
moreutils \
&& apt-get purge --auto-remove \
&& rm -rf /tmp/* /var/lib/apt/lists/*
WORKDIR /matrix-appservice-wechaty
COPY package.json .
RUN npm install \
&& rm -fr /tmp/* ~/.npm
COPY . .
RUN npm test \
&& ./scripts/generate-package-json.sh \
&& npm run dist \
&& npm link
WORKDIR /data
VOLUME /data
EXPOSE 8788/tcp
ENTRYPOINT ["/usr/bin/dumb-init", "--", "matrix-appservice-wechaty" ]
CMD [ "" ]