Reduce docker image size.
This commit is contained in:
parent
becd9df30d
commit
6abbd56df3
10
Dockerfile
10
Dockerfile
@ -2,14 +2,12 @@ FROM python:3-alpine
|
|||||||
|
|
||||||
WORKDIR /usr/src/app
|
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 ./
|
COPY requirements.txt ./
|
||||||
|
|
||||||
RUN pip install --no-cache-dir wheel cryptography gunicorn pymysql
|
RUN apk --no-cache add gcc musl-dev libffi-dev openssl-dev libxml2-dev libxslt-dev file llvm-dev make g++ \
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
&& pip install --no-cache-dir wheel cryptography gunicorn pymysql \
|
||||||
|
&& pip install --no-cache-dir -r requirements.txt \
|
||||||
RUN apk del gcc musl-dev libffi-dev openssl-dev file llvm-dev make g++
|
&& apk del gcc musl-dev libffi-dev openssl-dev file llvm-dev make g++
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user