Help us understand the problem. What is going on with this article?

Debian7のDockerfileのひな形

More than 3 years have passed since last update.

いちいちコピってくるのも面倒なのでここに貼っておく。

FROM debian:wheezy

# aptで日本のミラーを使う
RUN echo "deb http://ftp.jp.debian.org/debian wheezy main non-free contrib" > /etc/apt/sources.list && \
  echo "deb-src http://ftp.jp.debian.org/debian wheezy main non-free contrib" && \
  echo "deb http://security.debian.org/ wheezy/updates main contrib non-free" >> /etc/apt/sources.list && \
  echo "deb-src http://security.debian.org/ wheezy/updates main contrib non-free" >> /etc/apt/sources.list && \
  echo "deb http://ftp.jp.debian.org/debian wheezy-updates main contrib non-free" >> /etc/apt/sources.list && \
  echo "deb-src http://ftp.jp.debian.org/debian wheezy-updates main contrib non-free" >> /etc/apt/sources.list

# インストールに入力待ブロックをしなくなる
ENV DEBIAN_FRONTEND noninteractive

RUN echo "Asia/Tokyo" > /etc/timezone && \
  dpkg-reconfigure tzdata

RUN apt-get update && apt-get upgrade -y && \
  apt-get install -y sudo && \
  apt-get clean

これを使ってビルドしたい場合は以下の様な感じにする。

docker build -t tag_tmp --no-cache .

docker run \
  --name tmp_name \
  -v "/tmp/tmp:/usr/local/tmp" \
  tag_tmp \
  sh -c ""

docker rm tmp_name
Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away