Created
May 22, 2014 12:07
-
-
Save tsuyoshicho/d3f2838681ee26c2082d to your computer and use it in GitHub Desktop.
Dockerでdebianプラクティス ref: http://qiita.com/tsuyoshi_cho/items/6a20a1566f6cdcc9c818
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 debian:wheezy | |
MAINTAINER My Name <[email protected]> | |
# mirror | |
RUN echo "deb http://cdn.debian.net/debian/ wheezy main contrib non-free" > /etc/apt/sources.list.d/mirror.jp.list | |
RUN echo "deb http://cdn.debian.net/debian/ wheezy-updates main contrib" >> /etc/apt/sources.list.d/mirror.jp.list | |
RUN /bin/rm /etc/apt/sources.list | |
RUN export DEBIAN_FRONTEND=noninteractive LANG | |
RUN apt-get update | |
# set locale | |
RUN apt-get install -y --no-install-recommends apt-utils locales | |
RUN echo en_US.UTF-8 UTF-8 > /etc/locale.gen | |
RUN locale-gen | |
RUN update-locale LANG=en_US.UTF-8 | |
# sample | |
RUN apt-get install -y --no-install-recommends xxx | |
# apt package | |
# need for git | |
RUN apt-get install -y --no-install-recommends git | |
RUN apt-get install -y --no-install-recommends ca-certificates openssl | |
# clean up | |
RUN apt-get upgrade -y && apt-get clean && rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* | |
# git clone | |
RUN git clone https://github.com/xxx/yyy.git | |
ENTRYPOINT "/bin/bash" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment