Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +22 -0
Dockerfile
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.8
|
| 2 |
+
|
| 3 |
+
ENV PYTHONDONTWRITEBYTECODE 1
|
| 4 |
+
ENV PYTHONUNBUFFERED 1
|
| 5 |
+
|
| 6 |
+
WORKDIR /code
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
COPY ./hm_demo/requirements.txt /code/requirements.txt
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 13 |
+
|
| 14 |
+
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
|
| 15 |
+
|
| 16 |
+
RUN git clone https://github.com/facebookresearch/fastText.git && cd fastText && pip install .
|
| 17 |
+
|
| 18 |
+
COPY ./hf_demo .
|
| 19 |
+
|
| 20 |
+
EXPOSE 8000
|
| 21 |
+
|
| 22 |
+
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|