diff --git a/Dockerfile b/Dockerfile index 6b36e67..5f8971d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,14 +2,12 @@ FROM python:3-alpine WORKDIR /usr/src/app -RUN apk --no-cache add gcc musl-dev libffi-dev openssl-dev libxml2-dev libxslt-dev file llvm-dev make g++ - COPY requirements.txt ./ -RUN pip install --no-cache-dir wheel cryptography gunicorn pymysql -RUN pip install --no-cache-dir -r requirements.txt - -RUN apk del gcc musl-dev libffi-dev openssl-dev file llvm-dev make g++ +RUN apk --no-cache add gcc musl-dev libffi-dev openssl-dev libxml2-dev libxslt-dev file llvm-dev make g++ \ + && pip install --no-cache-dir wheel cryptography gunicorn pymysql \ + && pip install --no-cache-dir -r requirements.txt \ + && apk del gcc musl-dev libffi-dev openssl-dev file llvm-dev make g++ COPY . .