This commit is contained in:
wt
2023-02-08 10:04:00 +07:00
parent 55e04acdb2
commit a07a3daf85
2 changed files with 25 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
.dockerignore
Dockerfile
.gitignore
.idea
+21
View File
@@ -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"]