Skip to content

Commit 81687eb

Browse files
committed
Dockerization of the application
1 parent 3d1db13 commit 81687eb

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM ubuntu:20.04
2+
3+
RUN apt-get update && apt-get install -y \
4+
python3 \
5+
python3-pip
6+
7+
RUN pip3 install Flask
8+
9+
ENV http_proxy=http:...
10+
ENV https_proxy=http:...
11+
ENV LC_ALL C.UTF-8
12+
ENV LANG C.UTF-8
13+
14+
WORKDIR /app
15+
16+
COPY . /app
17+
18+
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]

docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: '3.8'
2+
services:
3+
flask-minimal-mb:
4+
build:
5+
context: .
6+
dockerfile: Dockerfile
7+
environment:
8+
PYTHONPATH: .
9+
ports:
10+
- '8080:5000'

0 commit comments

Comments
 (0)