Add Dockerfile deployment
This commit is contained in:
parent
95b172475e
commit
991d641a37
|
@ -0,0 +1,17 @@
|
||||||
|
FROM debian
|
||||||
|
|
||||||
|
ENV APP_PATH=/app
|
||||||
|
COPY . $APP_PATH
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get upgrade -y
|
||||||
|
RUN apt-get install -y python3.9 python3.9-venv
|
||||||
|
|
||||||
|
ENV VIRTUAL_ENV=$APP_PATH/venv
|
||||||
|
RUN python3.9 -m venv $VIRTUAL_ENV
|
||||||
|
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
||||||
|
|
||||||
|
WORKDIR $APP_PATH
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
CMD ["gunicorn", "index:app", "-b", "0.0.0.0:5000"]
|
|
@ -1,2 +1,3 @@
|
||||||
flask==2.0.2
|
flask==2.1.0
|
||||||
markdown2==2.4.2
|
markdown2==2.4.2
|
||||||
|
gunicorn==20.1.0
|
||||||
|
|
Loading…
Reference in New Issue