Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cicd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑天保
cicd
Commits
776d3b6b
Commit
776d3b6b
authored
Jan 02, 2019
by
zhengtianbao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e1ec0823
Pipeline
#10
passed with stage
in 1 minute 10 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
14 deletions
+12
-14
Dockerfile
Dockerfile
+2
-5
test.py
app/test.py
+10
-0
entrypoint.sh
entrypoint.sh
+0
-3
test.py
test.py
+0
-6
No files found.
Dockerfile
View file @
776d3b6b
FROM
jazzdd/alpine-flask
FROM
tiangolo/uwsgi-nginx-flask:python3.7
ENV
FLASK_APP=test.py
WORKDIR
/testweb
COPY
. /testweb
COPY
./app /app
EXPOSE
5000
CMD
['/testweb/entrypoint.sh']
app/test.py
0 → 100644
View file @
776d3b6b
from
flask
import
Flask
app
=
Flask
(
__name__
)
@app.route
(
"/"
)
def
hello
():
return
"Hello World from Flask"
if
__name__
==
"__main__"
:
# Only for debugging while developing
app
.
run
(
host
=
'0.0.0.0'
,
debug
=
True
,
port
=
5000
)
entrypoint.sh
deleted
100755 → 0
View file @
e1ec0823
#!/bin/sh
flask run
--host
=
0.0.0.0
test.py
deleted
100644 → 0
View file @
e1ec0823
from
flask
import
Flask
app
=
Flask
(
__name__
)
@app.route
(
'/'
)
def
hello_world
():
return
'Hello World!'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment