Skip to content

Commit

Permalink
Reduce the size of the C++ docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsGonzo committed Sep 29, 2024
1 parent 4f0b2d5 commit 18b0bba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions program/cpp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ FROM ubuntu:24.04
# docker build -t riscv64-linux-gnu .
#
# To run the container:
# docker run -it -v .:/usr/src riscv64-linux-gnu <my.elf>
# docker run --name godot-cpp-compiler -dv .:/usr/src riscv64-linux-gnu
#
# Install dependencies
RUN apt-get update && apt-get install -y \
g++-14-riscv64-linux-gnu \
git cmake mold ccache
mold ccache \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean


# Enter the shared directory
WORKDIR /usr/src
Expand Down

0 comments on commit 18b0bba

Please sign in to comment.