48. FROM python:3.6.2-slim
COPY * /
RUN pip install html2text && pip install urllib3 && pip install sh
ENV NumWords=10 MinLength=0
CMD python wordcount.py http://shakespeare.mit.edu/hamlet/full.html
Dockerfile
https://github.com/seanmck/aci-wordcount
ベースイメージはpython:3.6.2-slim
Pyhton:3.6.2-slim
(Base Image)
wordcount.py
(User Application)
html2text, urllib3, sh
(Python Package)
49. #
# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh"
#
# PLEASE DO NOT EDIT IT DIRECTLY.
#
FROM debian:stretch-slim
# ensure local python is preferred over distribution python
ENV PATH /usr/local/bin:$PATH
(以下略)
ベースイメージの中身も確認
https://github.com/docker-
library/python/blob/88812635c8ad7ff06a8a3755616a1040df222f3c/3.6/stretch/slim/Dockerfile
Pyhton:3.6.2-slim
(Base Image)
wordcount.py
(User Application)
html2text, urllib3, sh
(Python Package)
debian:stretch-slim
(Base of Base Image)
64. $ ./build_container.sh
The behavior of this command has been altered by the following extension: acrbuildext
Sending build context (1.155 KiB) to ACR
Queued a build with ID: ae1
(中略)
2018/10/23 06:40:20 Successfully populated digests for step ID: build
2018/10/23 06:40:20 Step ID: push marked as successful (elapsed time in seconds: 19.848761)
Run ID: ae1 was successful after 1m7s
ビルド用スクリプトを実行