File: Dockerfile

package info (click to toggle)
python-tornado 4.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,024 kB
  • ctags: 4,704
  • sloc: python: 25,036; sh: 130; xml: 49; ansic: 45; makefile: 45; sql: 26
file content (17 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:2.7

EXPOSE 8888

RUN apt-get update && apt-get install -y mysql-client

# based on python:2.7-onbuild, but if we use that image directly
# the above apt-get line runs too late.
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY requirements.txt /usr/src/app/
RUN pip install -r requirements.txt

COPY . /usr/src/app

CMD python blog.py --mysql_host=mysql