DockerFile

master
ifiguero 2020-09-22 15:48:46 -03:00
parent b639c52312
commit 4070f341ae
2 changed files with 33 additions and 3 deletions

28
Dockerfile 100644
View File

@ -0,0 +1,28 @@
FROM ubuntu:20.04
#FROM debian:buster-slim
#FROM python:3
RUN apt-get update -y
RUN apt-get install -y python3-pip python3-dev build-essential git
# set a directory for the app
RUN groupadd app && useradd -g app app
# copy all the files to the container
RUN git clone https://dev.ilab.cl/public/pythonweb.git /srv
# install dependencies
WORKDIR /srv/web-interface
RUN pip3 install setuptools gunicorn
RUN pip3 install --no-cache-dir -r requirements.txt
# define the port number the container should expose
RUN chown -R app:app /srv
USER app
EXPOSE 8000
# run the command
ENTRYPOINT ["gunicorn"]
CMD ["-b", "0.0.0.0:8000", "wsgi:app"]

View File

@ -1,3 +1,5 @@
Flask==1.0
ua-parser==0.8.0
user-agents==2.0
Flask
gunicorn
Werkzeug
ua-parser
user-agents