verification-code-solver/Dockerfile
2021-07-12 18:30:35 +08:00

18 lines
544 B
Docker

FROM alpine:latest
MAINTAINER Klesh Wong <klesh@kleshwong.com>
LABEL description="Simple verification-code solver"
WORKDIR /data
RUN sed -i 's|dl-cdn.alpinelinux.org|mirrors.aliyun.com|g' /etc/apk/repositories
RUN apk update --no-cache \
&& apk add --update --no-cache tesseract-ocr py3-pip py3-numpy py3-pillow \
&& rm -rf /var/cache/apk/*
ADD requirements.txt /data/requirements.txt
RUN pip3 install -r /data/requirements.txt --index-url=https://mirrors.aliyun.com/pypi/simple
ADD main.py /data/main.py
CMD python3 /data/main.py