anon5's picture
Update Dockerfile
43a01a7 verified
raw
history blame
317 Bytes
FROM python:3.9
WORKDIR /app
COPY ./app.py /app
COPY ./requirements.txt /app
RUN pip install -r requirements.txt
#RUN chmod -R 777 /.cache
RUN mkdir /app/.cache
#ARG SENTENCE_TRANSFORMERS_HOME=/app/.cache
ENV TRANSFORMERS_CACHE=/app/.cache
EXPOSE 7860
CMD ["flask", "run" ,"--host", "0.0.0.0", "--port", "7860"]