Skip to content

Commit

Permalink
Merge pull request #517 from i3thuan5/docker
Browse files Browse the repository at this point in the history
Docker
  • Loading branch information
sih4sing5hong5 committed May 8, 2018
2 parents 89baf37 + 11af372 commit 9b917b0
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

/.settings

/venv
文件/_*
MANIFEST
/node_modules/
/.project
/.pydevproject
/.git
/Dockerfile
/docker-compose.yml
/外部程式
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM ubuntu:16.04
MAINTAINER sih4sing5hong5

RUN apt-get update -qq && \
apt-get install -y locales \
python3 python3-pip g++ python3-dev \
libxslt1-dev git subversion automake libtool zlib1g-dev libboost-all-dev libbz2-dev liblzma-dev libgoogle-perftools-dev libxmlrpc-c++.*-dev make \
csh libc6-dev-i386 linux-libc-dev gcc-multilib libx11-dev # libx11-dev:i386

RUN pip3 install --upgrade pip

RUN locale-gen zh_TW.UTF-8
ENV LC_ALL zh_TW.UTF-8

RUN pip3 install tai5-uan5_gian5-gi2_kang1-ku7
RUN echo 'from 臺灣言語工具.翻譯.摩西工具.安裝摩西翻譯佮相關程式 import 安裝摩西翻譯佮相關程式; 安裝摩西翻譯佮相關程式.安裝moses(編譯CPU數=2)' | python3

0 comments on commit 9b917b0

Please sign in to comment.