aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorCamil Staps2016-10-29 13:23:37 +0300
committerCamil Staps2016-10-29 13:23:37 +0300
commit071858995ee5227ab4b585e96f55b5de3b74c5ae (patch)
tree2e67746745a02346a6d1411dcd2d426591c84f2c /Dockerfile
parentResolve #3: remove warnings at first run (diff)
Update CleanReadLine; minify Docker image
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile21
1 files changed, 16 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index 1d7a86f..f03f288 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,17 +1,28 @@
FROM camilstaps/clean:itasks-latest
-RUN apt-get update -qq && apt-get install -qq libreadline-dev
-
COPY make_abc.sh .
RUN ./make_abc.sh
RUN touch /home/.iclean_history /home/.iclean_template
-RUN mkdir -p /usr/src/iclean
COPY . /usr/src/iclean
WORKDIR /usr/src/iclean
-
-RUN make -B
+RUN PACKAGES="libreadline-dev make gcc" \
+ && apt-get update -qq \
+ && apt-get install -qq $PACKAGES \
+ && make -B \
+# Cleanup
+ && rm -rf \
+ Clean\ System\ Files \
+ CleanReadLine \
+ Makefile \
+ Dockerfile \
+ *.h *.c *.o \
+ *.dcl *.icl \
+ make_abc.sh \
+ && ADDED_PACKAGES=`apt-mark showauto` \
+ && apt-get remove --purge -qq $PACKAGES $ADDED_PACKAGES \
+ && rm -rf /var/lib/apt/lists/*
ENTRYPOINT "./iclean"
CMD []