Skip to content

Commit c439a3f

Browse files
committed
Ready to put it all together.
1 parent 7062df9 commit c439a3f

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM ubuntu:latest
2+
3+
RUN apt-get update && apt-get upgrade -y
4+
ENV TZ=America/Los_Angeles
5+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
6+
RUN apt-get install -y -q sudo
7+
RUN apt-get install -y -q fail2ban
8+
RUN apt-get install -y -q httpie
9+
RUN apt-get install -y -q glances
10+
11+
RUN apt-get install -y -q build-essential git python3-pip python3-dev python3-venv
12+
RUN python3 -m venv /venv
13+
RUN /venv/bin/pip install -U pip setuptools
14+
RUN /venv/bin/pip install responder
15+
16+
COPY movie_svc /app
17+
WORKDIR /app
18+
RUN /venv/bin/pip install -r /app/requirements.txt

days/097-100-docker/demo/services/movie_svc/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55

66
db.global_init()
77

8-
api.run(port=7007)
8+
9+
api.run(port=7007, address="0.0.0.0")

0 commit comments

Comments
 (0)