From 0bff6f21048c84c6a5e94305b680cb6d4337ddb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Thu, 10 Aug 2017 01:19:38 -0500 Subject: [PATCH] Remove files from old architecture, pre env vars --- example-flask-index-upload/Dockerfile | 3 --- example-flask-index-upload/app/main.py | 13 ------------- example-flask-index-upload/app/static/index.html | 10 ---------- example-flask-index-upload/app/uwsgi.ini | 3 --- example-flask-index/Dockerfile | 3 --- example-flask-index/app/main.py | 13 ------------- example-flask-index/app/static/index.html | 10 ---------- example-flask-index/app/uwsgi.ini | 3 --- example-flask-python3.5-index-upload/Dockerfile | 3 --- example-flask-python3.5-index-upload/app/main.py | 13 ------------- .../app/static/index.html | 10 ---------- .../app/uwsgi.ini | 3 --- example-flask-python3.5-index/Dockerfile | 3 --- example-flask-python3.5-index/app/main.py | 13 ------------- .../app/static/index.html | 10 ---------- example-flask-python3.5-index/app/uwsgi.ini | 3 --- example-flask-python3.5-upload/Dockerfile | 3 --- example-flask-python3.5-upload/app/main.py | 9 --------- example-flask-python3.5-upload/app/uwsgi.ini | 3 --- example-flask-python3.5/Dockerfile | 3 --- example-flask-python3.5/app/main.py | 9 --------- example-flask-python3.5/app/uwsgi.ini | 3 --- example-flask-upload/Dockerfile | 3 --- example-flask-upload/app/main.py | 9 --------- example-flask-upload/app/uwsgi.ini | 3 --- example-flask/Dockerfile | 3 --- example-flask/app/main.py | 9 --------- example-flask/app/uwsgi.ini | 3 --- flask-index-upload/Dockerfile | 6 ------ flask-index-upload/upload_100m.conf | 1 - flask-index/Dockerfile | 9 --------- flask-index/app/main.py | 13 ------------- flask-index/app/static/index.html | 10 ---------- flask-index/nginx.conf | 15 --------------- flask-python3.5-index-upload/Dockerfile | 6 ------ flask-python3.5-index-upload/upload_100m.conf | 1 - flask-python3.5-index/Dockerfile | 9 --------- flask-python3.5-index/app/main.py | 14 -------------- flask-python3.5-index/app/static/index.html | 10 ---------- flask-python3.5-index/nginx.conf | 15 --------------- flask-python3.5-upload/Dockerfile | 6 ------ flask-python3.5-upload/upload_100m.conf | 1 - flask-python3.5/Dockerfile | 11 ----------- flask-python3.5/app/main.py | 11 ----------- flask-python3.5/app/uwsgi.ini | 3 --- flask-python3.5/nginx.conf | 12 ------------ flask-upload/Dockerfile | 6 ------ flask-upload/upload_100m.conf | 1 - flask/Dockerfile | 11 ----------- flask/app/main.py | 10 ---------- flask/app/uwsgi.ini | 3 --- flask/nginx.conf | 12 ------------ 52 files changed, 372 deletions(-) delete mode 100644 example-flask-index-upload/Dockerfile delete mode 100644 example-flask-index-upload/app/main.py delete mode 100644 example-flask-index-upload/app/static/index.html delete mode 100644 example-flask-index-upload/app/uwsgi.ini delete mode 100644 example-flask-index/Dockerfile delete mode 100644 example-flask-index/app/main.py delete mode 100644 example-flask-index/app/static/index.html delete mode 100644 example-flask-index/app/uwsgi.ini delete mode 100644 example-flask-python3.5-index-upload/Dockerfile delete mode 100644 example-flask-python3.5-index-upload/app/main.py delete mode 100644 example-flask-python3.5-index-upload/app/static/index.html delete mode 100644 example-flask-python3.5-index-upload/app/uwsgi.ini delete mode 100644 example-flask-python3.5-index/Dockerfile delete mode 100644 example-flask-python3.5-index/app/main.py delete mode 100644 example-flask-python3.5-index/app/static/index.html delete mode 100644 example-flask-python3.5-index/app/uwsgi.ini delete mode 100644 example-flask-python3.5-upload/Dockerfile delete mode 100644 example-flask-python3.5-upload/app/main.py delete mode 100644 example-flask-python3.5-upload/app/uwsgi.ini delete mode 100644 example-flask-python3.5/Dockerfile delete mode 100644 example-flask-python3.5/app/main.py delete mode 100644 example-flask-python3.5/app/uwsgi.ini delete mode 100644 example-flask-upload/Dockerfile delete mode 100644 example-flask-upload/app/main.py delete mode 100644 example-flask-upload/app/uwsgi.ini delete mode 100644 example-flask/Dockerfile delete mode 100644 example-flask/app/main.py delete mode 100644 example-flask/app/uwsgi.ini delete mode 100644 flask-index-upload/Dockerfile delete mode 100644 flask-index-upload/upload_100m.conf delete mode 100644 flask-index/Dockerfile delete mode 100644 flask-index/app/main.py delete mode 100644 flask-index/app/static/index.html delete mode 100644 flask-index/nginx.conf delete mode 100644 flask-python3.5-index-upload/Dockerfile delete mode 100644 flask-python3.5-index-upload/upload_100m.conf delete mode 100644 flask-python3.5-index/Dockerfile delete mode 100644 flask-python3.5-index/app/main.py delete mode 100644 flask-python3.5-index/app/static/index.html delete mode 100644 flask-python3.5-index/nginx.conf delete mode 100644 flask-python3.5-upload/Dockerfile delete mode 100644 flask-python3.5-upload/upload_100m.conf delete mode 100644 flask-python3.5/Dockerfile delete mode 100644 flask-python3.5/app/main.py delete mode 100644 flask-python3.5/app/uwsgi.ini delete mode 100644 flask-python3.5/nginx.conf delete mode 100644 flask-upload/Dockerfile delete mode 100644 flask-upload/upload_100m.conf delete mode 100644 flask/Dockerfile delete mode 100644 flask/app/main.py delete mode 100644 flask/app/uwsgi.ini delete mode 100644 flask/nginx.conf diff --git a/example-flask-index-upload/Dockerfile b/example-flask-index-upload/Dockerfile deleted file mode 100644 index 107995ef..00000000 --- a/example-flask-index-upload/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM tiangolo/uwsgi-nginx-flask:flask-index-upload - -COPY ./app /app diff --git a/example-flask-index-upload/app/main.py b/example-flask-index-upload/app/main.py deleted file mode 100644 index d993d72c..00000000 --- a/example-flask-index-upload/app/main.py +++ /dev/null @@ -1,13 +0,0 @@ -from flask import Flask, send_file -app = Flask(__name__) - -@app.route("/hello") -def hello(): - return "Hello World from Flask" - -@app.route("/") -def main(): - return send_file('./static/index.html') - -if __name__ == "__main__": - app.run(host='0.0.0.0', debug=True, port=80) diff --git a/example-flask-index-upload/app/static/index.html b/example-flask-index-upload/app/static/index.html deleted file mode 100644 index 309cd794..00000000 --- a/example-flask-index-upload/app/static/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - Index - - -

Hello World from HTML

- - \ No newline at end of file diff --git a/example-flask-index-upload/app/uwsgi.ini b/example-flask-index-upload/app/uwsgi.ini deleted file mode 100644 index 1abe35ae..00000000 --- a/example-flask-index-upload/app/uwsgi.ini +++ /dev/null @@ -1,3 +0,0 @@ -[uwsgi] -module = main -callable = app diff --git a/example-flask-index/Dockerfile b/example-flask-index/Dockerfile deleted file mode 100644 index 5ffc928e..00000000 --- a/example-flask-index/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM tiangolo/uwsgi-nginx-flask:flask-index - -COPY ./app /app diff --git a/example-flask-index/app/main.py b/example-flask-index/app/main.py deleted file mode 100644 index d993d72c..00000000 --- a/example-flask-index/app/main.py +++ /dev/null @@ -1,13 +0,0 @@ -from flask import Flask, send_file -app = Flask(__name__) - -@app.route("/hello") -def hello(): - return "Hello World from Flask" - -@app.route("/") -def main(): - return send_file('./static/index.html') - -if __name__ == "__main__": - app.run(host='0.0.0.0', debug=True, port=80) diff --git a/example-flask-index/app/static/index.html b/example-flask-index/app/static/index.html deleted file mode 100644 index 309cd794..00000000 --- a/example-flask-index/app/static/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - Index - - -

Hello World from HTML

- - \ No newline at end of file diff --git a/example-flask-index/app/uwsgi.ini b/example-flask-index/app/uwsgi.ini deleted file mode 100644 index 1abe35ae..00000000 --- a/example-flask-index/app/uwsgi.ini +++ /dev/null @@ -1,3 +0,0 @@ -[uwsgi] -module = main -callable = app diff --git a/example-flask-python3.5-index-upload/Dockerfile b/example-flask-python3.5-index-upload/Dockerfile deleted file mode 100644 index 58902230..00000000 --- a/example-flask-python3.5-index-upload/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM tiangolo/uwsgi-nginx-flask:flask-python3.5-index-upload - -COPY ./app /app diff --git a/example-flask-python3.5-index-upload/app/main.py b/example-flask-python3.5-index-upload/app/main.py deleted file mode 100644 index 8899cfbc..00000000 --- a/example-flask-python3.5-index-upload/app/main.py +++ /dev/null @@ -1,13 +0,0 @@ -from flask import Flask, send_file -app = Flask(__name__) - -@app.route("/hello") -def hello(): - return "Hello World from Flask using Python 3.5" - -@app.route("/") -def main(): - return send_file('./static/index.html') - -if __name__ == "__main__": - app.run(host='0.0.0.0', debug=True, port=80) diff --git a/example-flask-python3.5-index-upload/app/static/index.html b/example-flask-python3.5-index-upload/app/static/index.html deleted file mode 100644 index 309cd794..00000000 --- a/example-flask-python3.5-index-upload/app/static/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - Index - - -

Hello World from HTML

- - \ No newline at end of file diff --git a/example-flask-python3.5-index-upload/app/uwsgi.ini b/example-flask-python3.5-index-upload/app/uwsgi.ini deleted file mode 100644 index 1abe35ae..00000000 --- a/example-flask-python3.5-index-upload/app/uwsgi.ini +++ /dev/null @@ -1,3 +0,0 @@ -[uwsgi] -module = main -callable = app diff --git a/example-flask-python3.5-index/Dockerfile b/example-flask-python3.5-index/Dockerfile deleted file mode 100644 index e32f706f..00000000 --- a/example-flask-python3.5-index/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM tiangolo/uwsgi-nginx-flask:flask-python3.5-index - -COPY ./app /app diff --git a/example-flask-python3.5-index/app/main.py b/example-flask-python3.5-index/app/main.py deleted file mode 100644 index 8899cfbc..00000000 --- a/example-flask-python3.5-index/app/main.py +++ /dev/null @@ -1,13 +0,0 @@ -from flask import Flask, send_file -app = Flask(__name__) - -@app.route("/hello") -def hello(): - return "Hello World from Flask using Python 3.5" - -@app.route("/") -def main(): - return send_file('./static/index.html') - -if __name__ == "__main__": - app.run(host='0.0.0.0', debug=True, port=80) diff --git a/example-flask-python3.5-index/app/static/index.html b/example-flask-python3.5-index/app/static/index.html deleted file mode 100644 index 309cd794..00000000 --- a/example-flask-python3.5-index/app/static/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - Index - - -

Hello World from HTML

- - \ No newline at end of file diff --git a/example-flask-python3.5-index/app/uwsgi.ini b/example-flask-python3.5-index/app/uwsgi.ini deleted file mode 100644 index 1abe35ae..00000000 --- a/example-flask-python3.5-index/app/uwsgi.ini +++ /dev/null @@ -1,3 +0,0 @@ -[uwsgi] -module = main -callable = app diff --git a/example-flask-python3.5-upload/Dockerfile b/example-flask-python3.5-upload/Dockerfile deleted file mode 100644 index 75c451f1..00000000 --- a/example-flask-python3.5-upload/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM tiangolo/uwsgi-nginx-flask:flask-python3.5-upload - -COPY ./app /app diff --git a/example-flask-python3.5-upload/app/main.py b/example-flask-python3.5-upload/app/main.py deleted file mode 100644 index ad800fd4..00000000 --- a/example-flask-python3.5-upload/app/main.py +++ /dev/null @@ -1,9 +0,0 @@ -from flask import Flask -app = Flask(__name__) - -@app.route("/") -def hello(): - return "Hello World from Flask using Python 3.5" - -if __name__ == "__main__": - app.run(host='0.0.0.0', debug=True, port=80) diff --git a/example-flask-python3.5-upload/app/uwsgi.ini b/example-flask-python3.5-upload/app/uwsgi.ini deleted file mode 100644 index 1abe35ae..00000000 --- a/example-flask-python3.5-upload/app/uwsgi.ini +++ /dev/null @@ -1,3 +0,0 @@ -[uwsgi] -module = main -callable = app diff --git a/example-flask-python3.5/Dockerfile b/example-flask-python3.5/Dockerfile deleted file mode 100644 index b2427297..00000000 --- a/example-flask-python3.5/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM tiangolo/uwsgi-nginx-flask:flask-python3.5 - -COPY ./app /app diff --git a/example-flask-python3.5/app/main.py b/example-flask-python3.5/app/main.py deleted file mode 100644 index ad800fd4..00000000 --- a/example-flask-python3.5/app/main.py +++ /dev/null @@ -1,9 +0,0 @@ -from flask import Flask -app = Flask(__name__) - -@app.route("/") -def hello(): - return "Hello World from Flask using Python 3.5" - -if __name__ == "__main__": - app.run(host='0.0.0.0', debug=True, port=80) diff --git a/example-flask-python3.5/app/uwsgi.ini b/example-flask-python3.5/app/uwsgi.ini deleted file mode 100644 index 1abe35ae..00000000 --- a/example-flask-python3.5/app/uwsgi.ini +++ /dev/null @@ -1,3 +0,0 @@ -[uwsgi] -module = main -callable = app diff --git a/example-flask-upload/Dockerfile b/example-flask-upload/Dockerfile deleted file mode 100644 index 0da371a7..00000000 --- a/example-flask-upload/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM tiangolo/uwsgi-nginx-flask:flask-upload - -COPY ./app /app diff --git a/example-flask-upload/app/main.py b/example-flask-upload/app/main.py deleted file mode 100644 index 6c54794f..00000000 --- a/example-flask-upload/app/main.py +++ /dev/null @@ -1,9 +0,0 @@ -from flask import Flask -app = Flask(__name__) - -@app.route("/") -def hello(): - return "Hello World from Flask" - -if __name__ == "__main__": - app.run(host='0.0.0.0', debug=True, port=80) diff --git a/example-flask-upload/app/uwsgi.ini b/example-flask-upload/app/uwsgi.ini deleted file mode 100644 index 1abe35ae..00000000 --- a/example-flask-upload/app/uwsgi.ini +++ /dev/null @@ -1,3 +0,0 @@ -[uwsgi] -module = main -callable = app diff --git a/example-flask/Dockerfile b/example-flask/Dockerfile deleted file mode 100644 index 4ca1769c..00000000 --- a/example-flask/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM tiangolo/uwsgi-nginx-flask:flask - -COPY ./app /app diff --git a/example-flask/app/main.py b/example-flask/app/main.py deleted file mode 100644 index 6c54794f..00000000 --- a/example-flask/app/main.py +++ /dev/null @@ -1,9 +0,0 @@ -from flask import Flask -app = Flask(__name__) - -@app.route("/") -def hello(): - return "Hello World from Flask" - -if __name__ == "__main__": - app.run(host='0.0.0.0', debug=True, port=80) diff --git a/example-flask/app/uwsgi.ini b/example-flask/app/uwsgi.ini deleted file mode 100644 index 1abe35ae..00000000 --- a/example-flask/app/uwsgi.ini +++ /dev/null @@ -1,3 +0,0 @@ -[uwsgi] -module = main -callable = app diff --git a/flask-index-upload/Dockerfile b/flask-index-upload/Dockerfile deleted file mode 100644 index 66bef8f4..00000000 --- a/flask-index-upload/Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -FROM tiangolo/uwsgi-nginx-flask:flask-index - -MAINTAINER Sebastian Ramirez - -# Add maximum upload of 100 m -COPY upload_100m.conf /etc/nginx/conf.d/ diff --git a/flask-index-upload/upload_100m.conf b/flask-index-upload/upload_100m.conf deleted file mode 100644 index 86bda515..00000000 --- a/flask-index-upload/upload_100m.conf +++ /dev/null @@ -1 +0,0 @@ -client_max_body_size 100m; diff --git a/flask-index/Dockerfile b/flask-index/Dockerfile deleted file mode 100644 index d777536c..00000000 --- a/flask-index/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM tiangolo/uwsgi-nginx-flask:flask - -MAINTAINER Sebastian Ramirez - -# Add app configuration to Nginx -COPY nginx.conf /etc/nginx/conf.d/ - -# Copy sample app -COPY ./app /app diff --git a/flask-index/app/main.py b/flask-index/app/main.py deleted file mode 100644 index 114fac97..00000000 --- a/flask-index/app/main.py +++ /dev/null @@ -1,13 +0,0 @@ -from flask import Flask, send_file -app = Flask(__name__) - -@app.route("/hello") -def hello(): - return "Hello World from Flask (default)" - -@app.route("/") -def main(): - return send_file('./static/index.html') - -if __name__ == "__main__": - app.run(host='0.0.0.0', debug=True, port=80) diff --git a/flask-index/app/static/index.html b/flask-index/app/static/index.html deleted file mode 100644 index c4b67b18..00000000 --- a/flask-index/app/static/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - Index - - -

Hello World from HTML (default)

- - \ No newline at end of file diff --git a/flask-index/nginx.conf b/flask-index/nginx.conf deleted file mode 100644 index 34169a45..00000000 --- a/flask-index/nginx.conf +++ /dev/null @@ -1,15 +0,0 @@ -server { - location / { - try_files $uri @app; - } - location @app { - include uwsgi_params; - uwsgi_pass unix:///tmp/uwsgi.sock; - } - location /static { - alias /app/static; - } - location = / { - index /static/index.html; - } -} \ No newline at end of file diff --git a/flask-python3.5-index-upload/Dockerfile b/flask-python3.5-index-upload/Dockerfile deleted file mode 100644 index 5463416a..00000000 --- a/flask-python3.5-index-upload/Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -FROM tiangolo/uwsgi-nginx-flask:flask-python3.5-index - -MAINTAINER Sebastian Ramirez - -# Add maximum upload of 100 m -COPY upload_100m.conf /etc/nginx/conf.d/ diff --git a/flask-python3.5-index-upload/upload_100m.conf b/flask-python3.5-index-upload/upload_100m.conf deleted file mode 100644 index 86bda515..00000000 --- a/flask-python3.5-index-upload/upload_100m.conf +++ /dev/null @@ -1 +0,0 @@ -client_max_body_size 100m; diff --git a/flask-python3.5-index/Dockerfile b/flask-python3.5-index/Dockerfile deleted file mode 100644 index 9dbe7bb5..00000000 --- a/flask-python3.5-index/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM tiangolo/uwsgi-nginx-flask:flask-python3.5 - -MAINTAINER Sebastian Ramirez - -# Add app configuration to Nginx -COPY nginx.conf /etc/nginx/conf.d/ - -# Copy sample app -COPY ./app /app diff --git a/flask-python3.5-index/app/main.py b/flask-python3.5-index/app/main.py deleted file mode 100644 index b80c3f45..00000000 --- a/flask-python3.5-index/app/main.py +++ /dev/null @@ -1,14 +0,0 @@ -from flask import Flask, send_file -app = Flask(__name__) - -@app.route("/hello") -def hello(): - return "Hello World from Flask in a uWSGI Nginx Docker container with \ - Python 3.5 (default)" - -@app.route("/") -def main(): - return send_file('./static/index.html') - -if __name__ == "__main__": - app.run(host='0.0.0.0', debug=True, port=80) diff --git a/flask-python3.5-index/app/static/index.html b/flask-python3.5-index/app/static/index.html deleted file mode 100644 index c4b67b18..00000000 --- a/flask-python3.5-index/app/static/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - Index - - -

Hello World from HTML (default)

- - \ No newline at end of file diff --git a/flask-python3.5-index/nginx.conf b/flask-python3.5-index/nginx.conf deleted file mode 100644 index 34169a45..00000000 --- a/flask-python3.5-index/nginx.conf +++ /dev/null @@ -1,15 +0,0 @@ -server { - location / { - try_files $uri @app; - } - location @app { - include uwsgi_params; - uwsgi_pass unix:///tmp/uwsgi.sock; - } - location /static { - alias /app/static; - } - location = / { - index /static/index.html; - } -} \ No newline at end of file diff --git a/flask-python3.5-upload/Dockerfile b/flask-python3.5-upload/Dockerfile deleted file mode 100644 index 0277eebf..00000000 --- a/flask-python3.5-upload/Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -FROM tiangolo/uwsgi-nginx-flask:flask-python3.5 - -MAINTAINER Sebastian Ramirez - -# Add maximum upload of 100 m -COPY upload_100m.conf /etc/nginx/conf.d/ diff --git a/flask-python3.5-upload/upload_100m.conf b/flask-python3.5-upload/upload_100m.conf deleted file mode 100644 index 86bda515..00000000 --- a/flask-python3.5-upload/upload_100m.conf +++ /dev/null @@ -1 +0,0 @@ -client_max_body_size 100m; diff --git a/flask-python3.5/Dockerfile b/flask-python3.5/Dockerfile deleted file mode 100644 index cad6219c..00000000 --- a/flask-python3.5/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM tiangolo/uwsgi-nginx:python3.5 - -MAINTAINER Sebastian Ramirez - -RUN pip install flask - -# Add app configuration to Nginx -COPY nginx.conf /etc/nginx/conf.d/ - -# Copy sample app -COPY ./app /app diff --git a/flask-python3.5/app/main.py b/flask-python3.5/app/main.py deleted file mode 100644 index 4bd6b2f1..00000000 --- a/flask-python3.5/app/main.py +++ /dev/null @@ -1,11 +0,0 @@ -from flask import Flask -app = Flask(__name__) - - -@app.route("/") -def hello(): - return "Hello World from Flask in a uWSGI Nginx Docker container with \ - Python 3.5 (default)" - -if __name__ == "__main__": - app.run(host='0.0.0.0', debug=True, port=80) diff --git a/flask-python3.5/app/uwsgi.ini b/flask-python3.5/app/uwsgi.ini deleted file mode 100644 index 1abe35ae..00000000 --- a/flask-python3.5/app/uwsgi.ini +++ /dev/null @@ -1,3 +0,0 @@ -[uwsgi] -module = main -callable = app diff --git a/flask-python3.5/nginx.conf b/flask-python3.5/nginx.conf deleted file mode 100644 index cd1622b5..00000000 --- a/flask-python3.5/nginx.conf +++ /dev/null @@ -1,12 +0,0 @@ -server { - location / { - try_files $uri @app; - } - location @app { - include uwsgi_params; - uwsgi_pass unix:///tmp/uwsgi.sock; - } - location /static { - alias /app/static; - } -} \ No newline at end of file diff --git a/flask-upload/Dockerfile b/flask-upload/Dockerfile deleted file mode 100644 index 448d0ecf..00000000 --- a/flask-upload/Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -FROM tiangolo/uwsgi-nginx-flask:flask - -MAINTAINER Sebastian Ramirez - -# Add maximum upload of 100 m -COPY upload_100m.conf /etc/nginx/conf.d/ diff --git a/flask-upload/upload_100m.conf b/flask-upload/upload_100m.conf deleted file mode 100644 index 86bda515..00000000 --- a/flask-upload/upload_100m.conf +++ /dev/null @@ -1 +0,0 @@ -client_max_body_size 100m; diff --git a/flask/Dockerfile b/flask/Dockerfile deleted file mode 100644 index e0c2a223..00000000 --- a/flask/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM tiangolo/uwsgi-nginx:python2.7 - -MAINTAINER Sebastian Ramirez - -RUN pip install flask - -# Add app configuration to Nginx -COPY nginx.conf /etc/nginx/conf.d/ - -# Copy sample app -COPY ./app /app diff --git a/flask/app/main.py b/flask/app/main.py deleted file mode 100644 index 4d740052..00000000 --- a/flask/app/main.py +++ /dev/null @@ -1,10 +0,0 @@ -from flask import Flask -app = Flask(__name__) - -@app.route("/") -def hello(): - return "Hello World from Flask in a uWSGI Nginx Docker container with \ - Python 2.7 (default)" - -if __name__ == "__main__": - app.run(host='0.0.0.0', debug=True, port=80) diff --git a/flask/app/uwsgi.ini b/flask/app/uwsgi.ini deleted file mode 100644 index 1abe35ae..00000000 --- a/flask/app/uwsgi.ini +++ /dev/null @@ -1,3 +0,0 @@ -[uwsgi] -module = main -callable = app diff --git a/flask/nginx.conf b/flask/nginx.conf deleted file mode 100644 index cd1622b5..00000000 --- a/flask/nginx.conf +++ /dev/null @@ -1,12 +0,0 @@ -server { - location / { - try_files $uri @app; - } - location @app { - include uwsgi_params; - uwsgi_pass unix:///tmp/uwsgi.sock; - } - location /static { - alias /app/static; - } -} \ No newline at end of file