Sentiment_App / Dockerfile
Gilbert Botchway
modification to docker
4dd43cf
raw
history blame
515 Bytes
FROM python:3.9
WORKDIR /app
# Create a writable directory for the cache
RUN mkdir -p /.cache/huggingface/hub && chmod -R 777 /.cache
# Set the TRANSFORMERS_CACHE environment variable
ENV TRANSFORMERS_CACHE /.cache/huggingface/hub
COPY requirements.txt .
COPY sentimentappstreamlit.py .
RUN pip3 install --upgrade pip
RUN pip3 install -r requirements.txt
CMD ["python","sentimentappstreamlit.py", "serve", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "ghylb-Sentiment_app.hf.space"]