File size: 677 Bytes
1228ed9 92e2f5a a8dfddc 1228ed9 a8dfddc 1228ed9 a8dfddc 1228ed9 92e2f5a a8dfddc 92e2f5a a8dfddc 0232d80 4c22d66 adc866e d5044f4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
FROM bitnami/pytorch
RUN mkdir --mode 700 /app/my_streamlit_app
WORKDIR /app/my_stramlit_app
COPY ./requirements.txt /app/my_streamlit_app/requirements.txt
RUN pip install --no-cache-dir -r /app/my_streamlit_app/requirements.txt
RUN mkdir --mode 700 "/app/my_streamlit_app/.cache/"
RUN mkdir --mode 700 "/app/my_streamlit_app/.cache/huggingface/"
ENV HUGGINGFACE_HUB_CACHE="/app/my_streamlit_app/.cache/huggingface"
RUN mkdir --mode 700 "/app/my_streamlit_app/.cache/transformers/"
ENV TRANSFORMERS_CACHE="/app/my_streamlit_app/.cache/transformers"
COPY . /app/my_streamlit_app/
RUN ls -la /app/my_streamlit_app/
CMD ["streamlit", "run", "/app/my_streamlit_app/app.py"]
|