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 5000 RUN flask run --host 0.0.0.0