21 lines
429 B
Docker
Executable file
21 lines
429 B
Docker
Executable file
FROM python:3.7
|
|
|
|
RUN mkdir /code
|
|
WORKDIR /code
|
|
|
|
ADD entrypoint.sh /code/entrypoint.sh
|
|
ADD requirements.txt /code/requirements.txt
|
|
ADD app/ /code
|
|
|
|
RUN ls
|
|
#RUN pip install -r requirements.txt --no-cache-dir
|
|
#RUN apt-get install apt-transport-https
|
|
RUN apt update -y
|
|
RUN apt install python3-pip -y
|
|
|
|
#RUN pip3 install --default-timeout=100 -r requirements.txt
|
|
|
|
EXPOSE 50002
|
|
ENV FLASK_APP "/code/app.py"
|
|
CMD ["/code/entrypoint.sh"]
|
|
|