Commit 7fc72e69 authored by skysky's avatar skysky

Add dockerfile

parent 98266690
Pipeline #4522 passed with stage
...@@ -3,7 +3,7 @@ kind: pipeline ...@@ -3,7 +3,7 @@ kind: pipeline
type: docker type: docker
name: default name: default
steps: steps:
- name: build - name: build-and-test
image: python image: python
commands: commands:
- echo "Starting build now..." - echo "Starting build now..."
......
FROM python
WORKDIR /app
ADD . /app
RUN pip install -r requirements.txt
CMD python app.py
\ No newline at end of file
from app_web import app from app_web import app
if __name__ =='__main__': if __name__ =='__main__':
app.run() app.run(host="0.0.0.0")
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment