Idcard-ocr / Dockerfile
phuochungus's picture
init
113ba48
FROM python:3.10.12
RUN apt-get update -y
RUN apt-get install -y software-properties-common \
build-essential \
hdf5-tools \
libgl1 \
libgtk2.0-dev \
libgeos-dev
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user ./requirements.txt ./requirements.txt
RUN pip3 install -r requirements.txt
COPY --chown=user . .
EXPOSE 8080
CMD ["python3", "run.py"]