diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..c31a48e --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +.dockerignore +Dockerfile +.gitignore +.idea \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..62943f0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM python:3.11-alpine + +WORKDIR /app + +RUN pip3 install --upgrade pip + +COPY requirements.txt /app + +RUN apk add --no-cache tesseract-ocr python3 py3-numpy && \ + pip3 install --upgrade pip setuptools wheel && \ + apk add --no-cache --virtual .build-deps gcc g++ zlib-dev make python3-dev py3-numpy-dev jpeg-dev && \ + pip3 install matplotlib && \ + apk del .build-deps + +RUN pip3 install -r requirements.txt --no-cache-dir + +COPY . /app + +ENTRYPOINT ["python3"] + +CMD ["main.py"] \ No newline at end of file