Permalink
Browse files

Initial commit. No idea if it works

  • Loading branch information...
kiriappeee committed Aug 2, 2018
0 parents commit 16888f323ad0df235996174ed3e6ffd03de4732c
Showing with 44 additions and 0 deletions.
  1. +7 −0 Dockerfile
  2. +4 −0 Dockerfile.nginx
  3. +15 −0 docker-compose.yml
  4. +6 −0 nginx.conf
  5. +6 −0 requirements.txt
  6. +6 −0 src/app.py
@@ -0,0 +1,7 @@
FROM python:3.5

COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
ADD src/ /src
WORKDIR /src
EXPOSE 5000
@@ -0,0 +1,4 @@
FROM nginx

COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
@@ -0,0 +1,15 @@
version: "2"
services:
revproxy:
build:
context: "."
file: "Dockerfile.nginx"
links:
- "web"
ports:
- "80:80"
web:
build:
context: "."
file: "Dockerfile"
command: "FLASK_APP=app.py flask run --host 0.0.0.0"
@@ -0,0 +1,6 @@
server{
listen 80;
location / {
proxy_pass web:5000
}
}
@@ -0,0 +1,6 @@
click==6.7
Flask==1.0.2
itsdangerous==0.24
Jinja2==2.10
MarkupSafe==1.0
Werkzeug==0.14.1
@@ -0,0 +1,6 @@
from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello_world():
return 'Hello, World!'

0 comments on commit 16888f3

Please sign in to comment.