Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyvpet
Project
Project
Details
Activity
Releases
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
haoyanbin
pyvpet
Commits
0f897af2
Commit
0f897af2
authored
Apr 30, 2024
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9c1e3e15
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Dockerfile
Dockerfile
+4
-2
docker-compose.yaml
docker-compose.yaml
+0
-2
start.py
start.py
+1
-1
No files found.
Dockerfile
View file @
0f897af2
FROM
python:3.8
WORKDIR
/app
ADD
./
/app
COPY
.
/app
RUN
python
-m
pip
install
--upgrade
pip
COPY
requirements.txt ./
#COPY requirements.txt ./app
RUN
pip
install
-r
requirements.txt
-i
https://mirrors.aliyun.com/pypi/simple/
EXPOSE
5080
# CMD ["gunicorn", "start:app", "-c", "./gunicorn.conf.py"]
CMD
["python", "start.py"]
\ No newline at end of file
docker-compose.yaml
View file @
0f897af2
...
...
@@ -10,8 +10,6 @@ services:
image
:
pyvpet-img:latest
ports
:
-
5080:5080
volumes
:
-
/Users/haoyanbin/PycharmProjects/pyvpet:/pyvpet
networks
:
-
diagnosis_network
...
...
start.py
View file @
0f897af2
...
...
@@ -3,4 +3,4 @@ from app import create_app
app
=
create_app
()
if
__name__
==
'__main__'
:
app
.
run
(
port
=
5080
,
debug
=
True
)
app
.
run
(
host
=
'0.0.0.0'
,
port
=
5080
,
debug
=
True
)
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