Skip to content

Commit

Permalink
Dockerization of the application
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikolaj Buchwald committed Jun 8, 2021
1 parent 3d1db13 commit d0177ba
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM ubuntu:20.04

RUN apt-get update && apt-get install -y \
python3 \
python3-pip

RUN pip3 install Flask

ENV http_proxy=http:...
ENV https_proxy=http:...
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8

WORKDIR /app

COPY . /app

CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3.8'
services:
flask-minimal-mb:
build:
context: .
dockerfile: Dockerfile
environment:
PYTHONPATH: .
ports:
- '8080:5000'

0 comments on commit d0177ba

Please sign in to comment.