docker
This commit is contained in:
1 parent
55e04acdb2
commit
a07a3daf85
2 files changed
+25
No files matched your search
@@ -0,0 +1,4 @@
|
|||||||
|
.dockerignore
|
||||||
|
Dockerfile
|
||||||
|
.gitignore
|
||||||
|
.idea
|
||||||
+21
@@ -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"]
|
||||||
Reference in new issue
Block a user