Spaces:
Runtime error
Runtime error
File size: 636 Bytes
ae4030b 23d4b72 3d784b0 ce8643b 3d784b0 ce8643b 23d4b72 3d784b0 |
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 29 30 31 32 33 |
FROM python:3.10
#variabel
ENV PYTHONUNBUFFERED 1
#local char
ENV LANG C.UTF-8
#directory
WORKDIR /app
#direktory cache
RUN mkdir -p /app/cache/huggingface
#set chache hugging face
ENV HF_HOME /app/.cache/huggingface
#permission
RUN chmod -R 777 /app/cache
#copyfile requirements
COPY ./requirements.txt /app/requirements.txt
#install depedensi
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir --prefer-binary -r /app/requirements.txt
#copy aplikasi ke folder
COPY ./app /app/app
#port
EXPOSE 8000
#running
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"] |