SentimentAnalysis / Dockerfile
seyf1elislam's picture
Update Dockerfile
0c075c3 verified
raw
history blame
569 Bytes
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfilef
FROM python:3.9
WORKDIR /code
ENV HF_HOME=/code/.cache/
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
# RUN git clone https://huggingface.co/MissingBreath/recycle-garbage-model
# RUN pip install gdown
RUN gdown 1-2xLqBeuq6ypWyPEVdfslKU1GLgD9a1_
# EXPOSE 5000
# CMD ["python", "api.py"]
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]