-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjava8-py37.Dockerfile
52 lines (44 loc) · 1.19 KB
/
java8-py37.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
40
41
42
43
44
45
46
47
48
49
50
51
52
# docker pull ibbd/java-python3
# Author: Alex
# Version: 2019-09-06
#
FROM openjdk:8-slim
MAINTAINER Alex Cai "[email protected]"
RUN apt update -y \
&& apt install -y --no-install-recommends \
python3 \
python3-pip \
python3-dev \
build-essential \
git \
&& apt autoremove -y \
&& apt clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# 安装系统包
# 安装常用的包
RUN pip3 install -U pip \
&& pip3 install JPype1 setuptools \
&& pip3 install numpy pandas scipy jieba
# 安装接口服务相关包
RUN pip3 install -U flask \
flask_restful \
flask-cors \
flask-httpauth \
pyyaml \
chardet \
gunicorn \
cython \
&& git clone https://github.com/ibbd-dev/python-fire-rest /fire \
&& cd /fire \
&& pip3 install -r requirements.txt \
&& python3 setup.py install \
&& pip3 install fire
# 工作目录
RUN mkdir /var/www
WORKDIR /var/www
# 解决时区问题
ENV TZ "Asia/Shanghai"
# 终端设置
# 默认值是dumb,这时在终端操作时可能会出现:terminal is not fully functional
ENV TERM xterm