Skip to content

Commit f7b23fa

Browse files
committed
add Dockerfile for building docker image
1 parent 0dac6d3 commit f7b23fa

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docker/Dockerfile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM alpine:latest
2+
ADD ./requirements.txt /root/requirements.txt
3+
RUN apk add py-pip
4+
RUN pip install -r /root/requirements.txt
5+
VOLUME /root/ezBlog
6+
EXPOSE 8888
7+
ENTRYPOINT python /root/ezBlog/ezBlog.py > /root/ezBlog/run.log 2>&1

ezBlog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,4 @@ def logout():
120120
context = ('server.crt', 'server.key')
121121
app.run(debug=True, host='::', port=443, use_reloader=True, ssl_context=context)
122122
else:
123-
app.run(debug=True, host='::', port=80, use_reloader=True)
123+
app.run(debug=True, host='::', port=8888, use_reloader=True)

0 commit comments

Comments
 (0)