Permalink
Browse files

Hello world testing Flask as a Docker service

  • Loading branch information...
EHER committed Oct 22, 2017
1 parent 180a334 commit c4021e80532461820f96869034c46b7eb795db83
Showing with 15 additions and 0 deletions.
  1. +7 −0 Dockerfile
  2. +2 −0 requirements.txt
  3. +6 −0 validator.py
View
@@ -0,0 +1,7 @@
FROM python
COPY requirements.txt .
COPY validator.py .
RUN pip install -r requirements.txt
EXPOSE 5000
ENV FLASK_APP validator.py
ENTRYPOINT ["flask", "run"]
View
@@ -0,0 +1,2 @@
Flask
openapi-spec-validator
View
@@ -0,0 +1,6 @@
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"

0 comments on commit c4021e8

Please sign in to comment.