Move all samples to the root dir
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
parent
0c6fcde001
commit
f1e4cca535
262 changed files with 0 additions and 0 deletions
10
nginx-flask-mysql/backend/Dockerfile
Executable file
10
nginx-flask-mysql/backend/Dockerfile
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
FROM python:3.6-alpine3.7
|
||||
EXPOSE 5000
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
RUN mkdir /code
|
||||
WORKDIR /code
|
||||
ADD requirements.txt /code/
|
||||
RUN pip install -r requirements.txt
|
||||
ADD . /code/
|
||||
ENV FLASK_APP hello.py
|
||||
CMD flask run --host=0.0.0.0
|
||||
6
nginx-flask-mysql/backend/hello.py
Executable file
6
nginx-flask-mysql/backend/hello.py
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
from flask import Flask
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def hello_world():
|
||||
return 'Hello world'
|
||||
6
nginx-flask-mysql/backend/requirements.txt
Executable file
6
nginx-flask-mysql/backend/requirements.txt
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
click==6.7
|
||||
Flask==1.0.2
|
||||
itsdangerous==0.24
|
||||
Jinja2==2.10
|
||||
MarkupSafe==1.0
|
||||
Werkzeug==0.14.1
|
||||
Loading…
Add table
Add a link
Reference in a new issue