Skip to content

Commit

Permalink
Adding some cleanup to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
arlake228 committed Feb 23, 2024
1 parent 54ce446 commit 5d7c8f3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ WORKDIR /usr/src/app

COPY . .

# Build
RUN cd /etc/apt/sources.list.d/ && \
curl -o perfsonar-release.list http://downloads.perfsonar.net/debian/perfsonar-release.list && \
curl http://downloads.perfsonar.net/debian/perfsonar-official.gpg.key | apt-key add - && \
apt update
RUN make
RUN make

#Cleanup
RUN apt-get clean autoclean && \
apt-get autoremove --yes && \
rm -rf /var/lib/{apt,dpkg,cache,log}/
RUN rm -rf ./*

0 comments on commit 5d7c8f3

Please sign in to comment.