DockerFile
parent
b639c52312
commit
4070f341ae
|
@ -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"]
|
|
@ -1,3 +1,5 @@
|
|||
Flask==1.0
|
||||
ua-parser==0.8.0
|
||||
user-agents==2.0
|
||||
Flask
|
||||
gunicorn
|
||||
Werkzeug
|
||||
ua-parser
|
||||
user-agents
|
||||
|
|
Loading…
Reference in New Issue