diff --git a/Dockerfile b/Dockerfile index efe1aac0..e425ccf2 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,12 @@ FROM python:3.8 as build ADD app/requirements.txt /requirements.txt -RUN apt-get update && apt-get install -y libmagickwand-dev && pip install --no-cache-dir -q -r requirements.txt +RUN apt-get update && apt-get install -y --no-install-recommends libmagickwand-dev && pip install --no-cache-dir -q -r requirements.txt FROM python:3.8-slim -RUN apt-get update && apt-get install -y libmagickwand-dev +RUN apt-get update && apt-get install -y --no-install-recommends libmagickwand-dev \ + && apt-get autoremove -y \ + && apt-get purge -y --auto-remove \ + && rm -rf /var/lib/apt/lists/* /root COPY --from=0 /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages ADD app /app CMD python /app/bot.py diff --git a/Dockerfile-test-env b/Dockerfile-test-env index 25c8a593..423cfaf7 100755 --- a/Dockerfile-test-env +++ b/Dockerfile-test-env @@ -1,9 +1,9 @@ FROM python:3.8 as build ADD app/requirements.txt /requirements.txt -RUN apt-get update && apt-get install -y libmagickwand-dev && pip install --no-cache-dir -q -r requirements.txt +RUN apt-get update && apt-get install -y --no-install-recommends libmagickwand-dev && pip install --no-cache-dir -q -r requirements.txt FROM python:3.8-slim -RUN apt-get update && apt-get install -y libmagickwand-dev +RUN apt-get update && apt-get install -y --no-install-recommends libmagickwand-dev COPY --from=0 /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages ADD app /app WORKDIR /app diff --git a/helm/values.yaml b/helm/values.yaml index e9877e4e..ac3fdc9a 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -8,7 +8,7 @@ image: repository: ldooks/dragon-bot pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "130" + tag: "131" imagePullSecrets: [] nameOverride: ""