Skip to content

Commit 61f043e

Browse files
committed
initial commit
0 parents  commit 61f043e

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

Dockerfile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM python:alpine
2+
MAINTAINER birgirst
3+
COPY . /app
4+
WORKDIR /app
5+
RUN pip install -r requirements.txt
6+
ENTRYPOINT ["python"]
7+
CMD ["app.py"]

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# ukacnc

app.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from flask import Flask, request, make_response
2+
3+
app = Flask(__name__)
4+
5+
6+
@app.route('/', methods=['GET'])
7+
def hello():
8+
return make_response('hello world!', 200)
9+
10+
11+
@app.route('/_/health')
12+
def health():
13+
return make_response('', 200)
14+
15+
16+
if __name__ == '__main__':
17+
app.run(debug=True,host='0.0.0.0', port=8080)

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Flask==0.12.4

0 commit comments

Comments
 (0)