tableocr / Dockerfile
ahmedzein's picture
Update Dockerfile
04a63c3 verified
raw
history blame contribute delete
445 Bytes
FROM ubuntu
RUN useradd -m -s /bin/bash xyz
RUN mkdir -p /usr/src/app/
RUN chown -R xyz:xyz /usr/src/app/
WORKDIR /usr/src/app
RUN apt-get update
RUN apt install -y python3-pip
RUN rm /usr/lib/python3.*/EXTERNALLY-MANAGED
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV HF_HOME=/tmp
ENV TRANSFORMERS_CACHE=/tmp
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]