-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (30 loc) · 930 Bytes
/
Dockerfile
File metadata and controls
38 lines (30 loc) · 930 Bytes
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
# cosmos
#
#
# Version: 1.0.0
FROM java:8
MAINTAINER Tid at [email protected]
# Install python3
RUN apt-get update \
&& apt-get install apt-utils g++ python3 python3-dev python3-pip python3-mock -y \
&& pip3 install pyyaml
# Install JPype
RUN cd ~/ \
&& apt-get install wget -y \
&& wget https://pypi.python.org/packages/d2/c2/cda0e4ae97037ace419704b4ebb7584ed73ef420137ff2b79c64e1682c43/JPype1-0.6.2.tar.gz \
&& tar -xvzf JPype1-0.6.2.tar.gz \
&& cd JPype1-0.6.2 \
&& python3 setup.py install \
&& cd ~ \
&& rm -r ./*
# Set Environment Language to 'zh_TW.UTF-8'
RUN locale-gen zh_TW.UTF-8 \
&& update-locale LANG=zh_TW.UTF-8 \
&& echo 'export LC_ALL=zh_TW.UTF-8' >> ~/.bashrc \
&& echo 'export LANG=zh_TW.UTF-8' >> ~/.bashrc \
&& echo 'export LANGUAGE=zh_TW.UTF-8' >> ~/.bashrc \
&& source ~/.bashrc
RUN cd / \
&& mkdir cosmos
COPY . /cosmos
WORKDIR /cosmos