File tree 3 files changed +24
-0
lines changed
3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ Dockerfile
2
+ .git
Original file line number Diff line number Diff line change
1
+ FROM python:3.6
2
+
3
+ ADD . /flasgger
4
+ WORKDIR /flasgger
5
+
6
+ RUN pip3 install -U --no-cache-dir pip && \
7
+ pip3 install --no-cache-dir -r requirements.txt -r requirements-dev.txt && \
8
+ pip3 install --no-cache-dir etc/flasgger_package
9
+
10
+ EXPOSE 5000
11
+
12
+ CMD ["python3" , "demo_app/app.py" ]
Original file line number Diff line number Diff line change @@ -28,6 +28,16 @@ There are some [example applications](examples/) and you can also play with exam
28
28
29
29
> NOTE: all the examples apps are also test cases and run automatically in Travis CI to ensure quality and coverage.
30
30
31
+ ## Docker
32
+
33
+ The examples and demo app can also be built and run as a Docker image/container:
34
+
35
+ ```
36
+ docker build -t flasgger .
37
+ docker run -it --rm -p 5000:5000 --name flasgger flasgger
38
+ ```
39
+ Then access the Flasgger demo app at http://localhost:5000 .
40
+
31
41
# Installation
32
42
33
43
> under your virtualenv do:
You can’t perform that action at this time.
0 commit comments