Skip to content

Commit 5d7c8f3

Browse files
committed
Adding some cleanup to dockerfile
1 parent 54ce446 commit 5d7c8f3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Dockerfile

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ WORKDIR /usr/src/app
44

55
COPY . .
66

7+
# Build
78
RUN cd /etc/apt/sources.list.d/ && \
89
curl -o perfsonar-release.list http://downloads.perfsonar.net/debian/perfsonar-release.list && \
910
curl http://downloads.perfsonar.net/debian/perfsonar-official.gpg.key | apt-key add - && \
1011
apt update
11-
RUN make
12+
RUN make
13+
14+
#Cleanup
15+
RUN apt-get clean autoclean && \
16+
apt-get autoremove --yes && \
17+
rm -rf /var/lib/{apt,dpkg,cache,log}/
18+
RUN rm -rf ./*

0 commit comments

Comments
 (0)