Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2019 KSZK Docker Ismertető
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Torma Kristóf
2019 KSZK Docker Ismertető
Commits
f0cfd48c
Verified
Commit
f0cfd48c
authored
5 years ago
by
Torma Kristóf
Browse files
Options
Downloads
Patches
Plain Diff
fix all the things
parent
c422e313
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.dockerignore
+2
-0
2 additions, 0 deletions
.dockerignore
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
app.py
+6
-4
6 additions, 4 deletions
app.py
with
10 additions
and
4 deletions
.dockerignore
0 → 100644
+
2
−
0
View file @
f0cfd48c
.git/
.idea/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitignore
+
2
−
0
View file @
f0cfd48c
...
@@ -102,3 +102,5 @@ venv.bak/
...
@@ -102,3 +102,5 @@ venv.bak/
# mypy
# mypy
.mypy_cache/
.mypy_cache/
.idea/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app.py
+
6
−
4
View file @
f0cfd48c
from
flask
import
Flask
from
flask
import
Flask
app
=
Flask
(
__name__
)
app
=
Flask
(
__name__
)
@app.route
(
"
/
"
)
@app.route
(
"
/
"
)
def
readfile
():
def
readfile
():
with
open
(
"
/data/file.txt
"
,
'
r
'
)
as
inputfile
:
with
open
(
"
/data/file.txt
"
,
'
r
'
)
as
inputfile
:
return
inputFile
.
readline
()
return
inputfile
.
readline
()
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
app
.
run
(
host
=
'
0.0.0.0
'
,
port
=
8080
)
app
.
run
(
host
=
'
0.0.0.0
'
,
port
=
8080
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment