FROM python:slim LABEL authors="tebarius" LABEL version="1.1" LABEL description="QR-Code-Generator-Server with Flask-App" LABEL platform="Raspberry Pi 3 with Raspian" WORKDIR /app COPY ./app /app/ RUN apt-get update && apt-get install -y gcc zlib1g-dev libjpeg-dev #RUN python -m pip install --upgrade pip #RUN python -m pip install --upgrade pillow RUN pip install --trusted-host pypi.python.org -r requirements.txt EXPOSE 8002 ENV HTTP_METHOD POST CMD ["sh", "-c", "python ${HTTP_METHOD}-Flask-QR.py"]