qrcode_be/Dockerfile
2021-01-03 18:30:53 +08:00

9 lines
375 B
Docker

FROM python:3.7-alpine
COPY requirements.txt /app/requirements.txt
WORKDIR /app
RUN apk --update add libxml2-dev libxslt-dev libffi-dev gcc musl-dev libgcc openssl-dev curl
RUN apk add jpeg-dev zlib-dev freetype-dev lcms2-dev openjpeg-dev tiff-dev tk-dev tcl-dev
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
COPY . .
CMD sh go.sh && python