Spaces:
Runtime error
Runtime error
File size: 789 Bytes
5c4e804 d5f7d9b 5c4e804 52f29e6 9e1c3ed 5c4e804 93320df 5c4e804 58ebc69 5c4e804 52f29e6 d5f7d9b 52f29e6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | FROM python:3.8
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# ENV GUNICORN_CMD_ARGS "--bind=0.0.0.0:8000 --log-level=error"
WORKDIR /code
# RUN pip install gunicorn
# COPY gunicorn_conf.py /code
COPY ./hf_demo/requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.4.1/en_core_web_sm-3.4.1.tar.gz
RUN git clone https://github.com/facebookresearch/fastText.git && cd fastText && pip install .
COPY ./hf_demo .
RUN python manage.py migrate
EXPOSE 8000
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
# CMD ["gunicorn", "hf_demo.wsgi:application
# CMD ["gunicorn", "--bind", "0.0.0.0:8000", "hf_demo.wsgi:application"]
|