From 5051caf5bf8380c65e4bfa4c2ee0c86120092042 Mon Sep 17 00:00:00 2001 From: Tindy X <49061470+tindy2013@users.noreply.github.com> Date: Thu, 2 Jul 2020 01:04:17 +0800 Subject: [PATCH] Update Dockerfile --- scripts/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/Dockerfile b/scripts/Dockerfile index 60336f8..a97b988 100644 --- a/scripts/Dockerfile +++ b/scripts/Dockerfile @@ -2,12 +2,12 @@ FROM alpine:latest MAINTAINER Tindy X # build minimized -RUN apk add git g++ build-base linux-headers cmake && \ - apk add curl-dev rapidjson-dev libevent-dev pcre2-dev yaml-cpp-dev python2 && \ +RUN apk add --no-cache --virtual .build-deps git g++ build-base linux-headers cmake && \ + apk add --no-cache --virtual .build-deps curl-dev rapidjson-dev libevent-dev pcre2-dev yaml-cpp-dev python2 && \ git clone https://github.com/svaarala/duktape --depth=1 && \ cd duktape && \ python2 -m ensurepip && \ - pip2 install PyYAML && \ + pip2 install PyYAML --no-cache-dir && \ mkdir dist && \ python2 util/dist.py && \ cd dist/source/src && \ @@ -28,8 +28,8 @@ RUN apk add git g++ build-base linux-headers cmake && \ mv base ../ && \ cd .. && \ rm -rf subconverter && \ - apk add pcre2 libcurl yaml-cpp libevent && \ - apk del git gcc g++ build-base linux-headers cmake curl-dev rapidjson-dev libevent-dev pcre2-dev yaml-cpp-dev python2 + apk add --no-cache --virtual subconverter-deps pcre2 libcurl yaml-cpp libevent && \ + apk del .build-deps # set entry WORKDIR /base