Skip to content

Instantly share code, notes, and snippets.

@tchia04
Created September 29, 2017 00:20
Show Gist options
  • Save tchia04/ae23c9c8d0184af039db2faa83307f7b to your computer and use it in GitHub Desktop.
Save tchia04/ae23c9c8d0184af039db2faa83307f7b to your computer and use it in GitHub Desktop.
docker image build --no-cache -t web .
Sending build context to Docker daemon 5.632kB
Step 1/8 : FROM python:2.7-alpine
---> 9b06bbaac1c7
Step 2/8 : RUN mkdir /app
---> Running in 40023c9de219
---> f89e81b020da
Removing intermediate container 40023c9de219
Step 3/8 : WORKDIR /app
---> 39183ff3f1be
Removing intermediate container c8390bc1ceef
Step 4/8 : COPY requirements.txt requirements.txt
---> eeaa82a848e0
Step 5/8 : RUN pip install -r requirements.txt
---> Running in 91c8ad486ccb
Collecting Flask==0.12 (from -r requirements.txt (line 1))
Downloading Flask-0.12-py2.py3-none-any.whl (82kB)
Collecting itsdangerous>=0.21 (from Flask==0.12->-r requirements.txt (line 1))
Downloading itsdangerous-0.24.tar.gz (46kB)
Collecting click>=2.0 (from Flask==0.12->-r requirements.txt (line 1))
Downloading click-6.7-py2.py3-none-any.whl (71kB)
Collecting Jinja2>=2.4 (from Flask==0.12->-r requirements.txt (line 1))
Downloading Jinja2-2.9.6-py2.py3-none-any.whl (340kB)
Collecting Werkzeug>=0.7 (from Flask==0.12->-r requirements.txt (line 1))
Downloading Werkzeug-0.12.2-py2.py3-none-any.whl (312kB)
Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->Flask==0.12->-r requirements.txt (line 1))
Downloading MarkupSafe-1.0.tar.gz
Building wheels for collected packages: itsdangerous, MarkupSafe
Running setup.py bdist_wheel for itsdangerous: started
Running setup.py bdist_wheel for itsdangerous: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/fc/a8/66/24d655233c757e178d45dea2de22a04c6d92766abfb741129a
Running setup.py bdist_wheel for MarkupSafe: started
Running setup.py bdist_wheel for MarkupSafe: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/88/a7/30/e39a54a87bcbe25308fa3ca64e8ddc75d9b3e5afa21ee32d57
Successfully built itsdangerous MarkupSafe
Installing collected packages: itsdangerous, click, MarkupSafe, Jinja2, Werkzeug, Flask
Successfully installed Flask-0.12 Jinja2-2.9.6 MarkupSafe-1.0 Werkzeug-0.12.2 click-6.7 itsdangerous-0.24
---> 43bdb99ea90f
Removing intermediate container 91c8ad486ccb
Step 6/8 : COPY . .
---> 49588d764af8
Step 7/8 : LABEL maintainer "Nick Janetakis <nick.janetakis@gmail.com>" version "1.0"
---> Running in 9a8b524b32e7
---> f149ea10a76c
Removing intermediate container 9a8b524b32e7
Step 8/8 : CMD flask run --host=0.0.0.0 --port=5000
---> Running in 055308d15db3
---> fa5cc1019e1f
Removing intermediate container 055308d15db3
Successfully built fa5cc1019e1f
Successfully tagged web:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment