1 | 1 | | FROM python:3.9-slim |
2 | | - | MAINTAINER Soxoj <[email protected]> |
| 2 | + | LABEL maintainer="Soxoj <[email protected]>" |
3 | 3 | | WORKDIR /app |
4 | | - | RUN pip install --upgrade pip |
5 | | - | RUN apt update && \ |
6 | | - | apt install -y \ |
| 4 | + | RUN pip install --no-cache-dir --upgrade pip |
| 5 | + | RUN apt-get update && \ |
| 6 | + | apt-get install --no-install-recommends -y \ |
7 | 7 | | gcc \ |
8 | 8 | | musl-dev \ |
9 | 9 | | libxml2 \ |
10 | 10 | | libxml2-dev \ |
11 | | - | libxslt-dev |
12 | | - | RUN apt clean \ |
13 | | - | && rm -rf /var/lib/apt/lists/* /tmp/* |
14 | | - | ADD . . |
15 | | - | RUN YARL_NO_EXTENSIONS=1 python3 -m pip install . |
| 11 | + | libxslt-dev \ |
| 12 | + | && \ |
| 13 | + | rm -rf /var/lib/apt/lists/* /tmp/* |
| 14 | + | COPY . . |
| 15 | + | RUN YARL_NO_EXTENSIONS=1 python3 -m pip install --no-cache-dir . |
16 | 16 | | ENTRYPOINT ["maigret"] |
17 | 17 | | |