Last active
August 20, 2017 14:54
-
-
Save f7q/8e80b5b1a33340716a57b3f010afe8bc to your computer and use it in GitHub Desktop.
CentOS版 日本語設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:7.2.1511 | |
# system update 50MB程度 | |
RUN yum -y update && yum clean all | |
# set locale | |
RUN unlink /etc/localtime | |
RUN ln -s /usr/share/zoneinfo/Japan /etc/localtime | |
RUN yum reinstall -y glibc-common | |
RUN yum reinstall -y glibc | |
#RUN yum group install -y "Japanese Support" | |
RUN localedef -f UTF-8 -i ja_JP ja_JP | |
ENV LANG ja_JP.UTF-8 | |
ENV LC_CTYPE ja_JP.UTF-8 | |
ENV LC_NUMERIC ja_JP.UTF-8 | |
ENV LC_TIME ja_JP.UTF-8 | |
ENV LC_COLLATE ja_JP.UTF-8 | |
ENV LC_MONETARY ja_JP.UTF-8 | |
ENV LC_MESSAGES ja_JP.UTF-8 | |
ENV LC_PAPER ja_JP.UTF-8 | |
ENV LC_NAME ja_JP.UTF-8 | |
ENV LC_ADDRESS ja_JP.UTF-8 | |
ENV LC_TELEPHONE ja_JP.UTF-8 | |
ENV LC_MEASUREMENT ja_JP.UTF-8 | |
ENV LC_IDENTIFICATION ja_JP.UTF-8 | |
ENV LC_ALL ja_JP.UTF-8 | |
ENV LANGUAGE ja_JP:ja | |
RUN yum -y install kbd | |
# editor install 90MB程度 | |
#RUN yum install -y vim | |
## dotnet core | |
RUN yum -y install libunwind libicu | |
RUN yum clean all | |
## https://github.com/dotnet/core/blob/master/release-notes/download-archive.md | |
RUN curl -sSL -o dotnet-dev-centos-x64.1.0.4.tar.gz https://download.microsoft.com/download/E/7/8/E782433E-7737-4E6C-BFBF-290A0A81C3D7/dotnet-dev-centos-x64.1.0.4.tar.gz | |
RUN mkdir -p /opt/dotnet && tar zxf dotnet-dev-centos-x64.1.0.4.tar.gz -C /opt/dotnet | |
RUN ln -s /opt/dotnet/dotnet /usr/local/bin | |
#ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE true | |
#ENV UGET_XMLDOC_MODE skip | |
#ENV ASPNETCORE_ENVIROMENT=Development,Staging,Production | |
#How to Use | |
#docker build -t <tag> . | |
#docker run -v /c/Users/taro/Desktop/work/IdentityServer4Authentication:/root -it -p 2704:2704 centosjp /bin/bash | |
#docker run -v {PWD}:/root -it -p 2704:2704 centosjp /bin/bash | |
#dotnet restore | |
#dotnet build | |
#ASPNETCORE_URLS="http://*:2704" dotnet run | |
#curl http://192.168.99.100:5000 | |
RUN yum install -y yum-utils | |
RUN rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" | |
RUN yum-config-manager --add-repo http://download.mono-project.com/repo/centos7/ | |
RUN yum install -y mono-*4.6.1* | |
ENV DEBIAN_FRONTEND teletype |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment