FROM python:3-alpine # Create app directory WORKDIR /app # Install app dependencies COPY requirements.txt ./ RUN pip install -r requirements.txt #imagemagick ENV MAGICK_HOME=/usr RUN apk add --no-cache imagemagick && \ apk add --no-cache imagemagick-dev # Bundle app source COPY . . EXPOSE 8080 CMD [ "python3", "run.py"]