Cleaning the image after build.

This commit is contained in:
Tranko 2022-01-05 15:02:24 +00:00 committed by GitHub
parent 1f1fae1dfb
commit 32e69e94a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -44,9 +44,13 @@ RUN cmake .. -DRPI4ARM64=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
RUN make -j4; RUN make -j4;
RUN make install RUN make install
EXPOSE 2456-2457/udp # Cleaning the image
RUN apt-get purge -y wget
RUN rm -r a-build-dir
RUN apt-get purge -y a-package
# Specific for run Valheim server
EXPOSE 2456-2457/udp
WORKDIR /root/ WORKDIR /root/
COPY bootstrap . COPY bootstrap .
CMD ["/root/bootstrap"] CMD ["/root/bootstrap"]