This repository was archived by the owner on Dec 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (38 loc) · 2.19 KB
/
Copy pathDockerfile
File metadata and controls
55 lines (38 loc) · 2.19 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM ubuntu:trusty
MAINTAINER dgq8211@gmail.com
RUN echo "Asia/Shanghai" > /etc/timezone \
&& dpkg-reconfigure -f noninteractive tzdata
RUN echo "" > /etc/apt/sources.list \
&& echo "deb http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb-src http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe" >> /etc/apt/sources.list \
&& echo "deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe" >> /etc/apt/sources.list
# Install zh_cn fonts
RUN apt-get update && apt-get install -y fonts-droid \
ttf-wqy-zenhei \
ttf-wqy-microhei \
fonts-arphic-ukai \
fonts-arphic-uming \
language-pack-zh-hans
RUN locale-gen zh_CN.UTF-8
# Default to UTF-8 file.encoding
ENV LANG zh_CN.utf8
ENV LC_ALL zh_CN.utf8
WORKDIR /opt
ARG finebi_url=http://down.finereport.com/linux_unix_FineBI4_1-CN.sh
# 30G memory
ARG jvm_memory=30720
ARG http_port=37799
ENV JVM_MEMORY_LIMIT ${jvm_memory}
RUN apt-get install -y curl \
&& curl -fsSL ${finebi_url} -o /opt/linux_unix_FineBI4_1-CN.sh
RUN bash -c '/bin/echo -e "\n\n\n\n1\n\n${JVM_MEMORY_LIMIT}\n\n\nn\nn\n" | bash linux_unix_FineBI4_1-CN.sh'
EXPOSE ${http_port}
VOLUME /opt/FineBI/webapps/WebReport/
ENTRYPOINT ["/bin/bash", "/opt/FineBI/FineBI"]