Skip to content

Commit d57b1c5

Browse files
committed
Add the simple python app
Signed-off-by: Radoslav Dimitrov <[email protected]>
1 parent fe69e39 commit d57b1c5

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,14 @@ cython_debug/
158158
# and can be added to the global gitignore or merged into this file. For a more nuclear
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160160
#.idea/
161+
162+
.idea/
163+
164+
# Filter out key files
165+
*.key
166+
*.pem
167+
*.crt
168+
*.csr
169+
*.pub
170+
*.base64
171+
*.sig

Dockerfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM python:3.8-slim
2+
3+
WORKDIR /app
4+
5+
COPY . /app
6+
7+
RUN pip install --no-cache-dir Flask
8+
9+
EXPOSE 80
10+
11+
CMD ["python", "./app.py"]

app.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from flask import Flask
2+
3+
app = Flask(__name__)
4+
5+
@app.route('/')
6+
def hello():
7+
return "Hello, World!"

requirements.txt

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

0 commit comments

Comments
 (0)