File tree 5 files changed +40
-29
lines changed
5 files changed +40
-29
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,17 @@ _内置数据库,容器内多进程非Docker推荐做法,只为方便。_
19
19
## 版本选择
20
20
21
21
full: 完整功能,内置数据库
22
+
22
23
nodb: 完整功能,不包含数据库
24
+
23
25
lite: 仅有leanote程序,网页版不支持导出pdf和备份数据库,供客户端用户使用
24
26
25
27
具体如下
26
28
27
29
- latest([ Dockerfile] ( https://github.com/axboy/docker-leanote/blob/master/Dockerfile ) )
28
30
- nodb([ Dockerfile] ( https://github.com/axboy/leanote/blob/master/nodb/Dockerfile ) )
29
31
- lite([ Dockerfile] ( https://github.com/axboy/leanote/blob/master/lite/Dockerfile ) )
30
- - nodb-arm([ Dockerfile] ( https://github.com/axboy/leanote/blob/master/nodb-arm/Dockerfile ) )
31
- - lite-arm([ Dockerfile] ( https://github.com/axboy/leanote/blob/master/lite-arm/Dockerfile ) )
32
+ - lite-arm([ Dockerfile] ( https://github.com/axboy/leanote/blob/master/lite/Dockerfile-arm ) )
32
33
- ~~ 2.5([ Dockerfile] ( https://github.com/axboy/leanote/blob/2.5/Dockerfile ) )~~
33
34
- ~~ 2.6([ Dockerfile] ( https://github.com/axboy/leanote/blob/2.6/Dockerfile ) )~~
34
35
- ~~ 2.6.1([ Dockerfile] ( https://github.com/axboy/leanote/blob/2.6.1/Dockerfile ) )~~
Original file line number Diff line number Diff line change
1
+ FROM alpine:3.12
2
+ MAINTAINER zcw
3
+ ENV TZ=Asia/Shanghai
4
+
5
+ RUN apk update && apk add tzdata && \
6
+ cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
7
+ mkdir /data/ && \
8
+ wget http://static.axboy.cn/leanote/leanote-linux-arm-v2.6.1.bin.tar.gz -O /root/leanote.tar.gz && \
9
+ tar -xzf /root/leanote.tar.gz -C /data/ && \
10
+ chmod a+x /data/leanote/bin/run.sh && \
11
+ rm -f /root/leanote.tar.gz
12
+
13
+ EXPOSE 9000
14
+ CMD sh /data/leanote/bin/run.sh
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ FROM madnight/alpine-wkhtmltopdf-builder:0.12.5-alpine3.10-705860667 as builder
2
+ FROM axboy/leanote:latest as fontBuilder
3
+
4
+ FROM alpine:3.12
5
+ MAINTAINER zcw
6
+ ENV TZ=Asia/Shanghai
7
+
8
+ COPY --from=builder /bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf
9
+ COPY --from=fontBuilder /usr/share/fonts/truetype /usr/share/fonts/truetype
10
+
11
+ RUN apk update && apk add --no-cache tzdata mongodb-tools \
12
+ libgcc libstdc++ libx11 glib libxrender libxext libintl \
13
+ ttf-dejavu ttf-droid ttf-freefont ttf-liberation ttf-ubuntu-font-family && \
14
+ cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
15
+ mkdir /data/ && \
16
+ wget http://static.axboy.cn/leanote/leanote-linux-arm-v2.6.1.bin.tar.gz -O /root/leanote.tar.gz && \
17
+ tar -xzf /root/leanote.tar.gz -C /data/ && \
18
+ chmod +x /data/leanote/bin/run.sh && \
19
+ chmod +x /usr/local/bin/wkhtmltopdf && \
20
+ rm -f /root/leanote.tar.gz
21
+
22
+ EXPOSE 9000
23
+ CMD sh /data/leanote/bin/run.sh
You can’t perform that action at this time.
0 commit comments