image-caption / Dockerfile
enemy7's picture
Update Dockerfile
3c7f662
raw
history blame
464 Bytes
FROM python:3.9
WORKDIR /app
COPY requirements.txt /app/
RUN pip3 install -r requirements.txt
RUN chmod 777 /app
COPY . /app
# RUN ["python3" ,"-m" ,"nltk.downloader" ,"all" ,"-d", "/nltk_data"]
#CMD ["flask" , "run" , "--host=0.0.0.0", "--port=7860" ]
# CMD ["/bin/sh","/usr/bin/python3" ,"-m" ,"http.server" ,"-b", "0.0.0.0" ,"7860","&","/usr/bin/python3", "main.py" ,">>", "log.txt"]
# & python3 -m http.server -b 0.0.0.0 7860
CMD ["python3", "main.py" ]