File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -183,5 +183,10 @@ RUN apt-get remove -y libssl-dev \
183183 && rm -rf "./openssl-$OPENSSL_VERSION" \
184184 && rm /tmp.tar.gz
185185
186+ # Make ccache directory writable for everyone to allow running the container
187+ # as non-root.
188+ ENV CCACHE_DIR="/.ccache"
189+ RUN mkdir $CCACHE_DIR && chmod -R 777 $CCACHE_DIR
190+
186191# LibrePCB's unittests expect that there is a USERNAME environment variable
187192ENV USERNAME="root"
Original file line number Diff line number Diff line change @@ -76,5 +76,10 @@ RUN wget -c "${UV_URL}" -O /tmp.tar.gz \
7676ARG PYTHON_VERSION="3.13"
7777RUN uv python install $PYTHON_VERSION
7878
79+ # Make ccache directory writable for everyone to allow running the container
80+ # as non-root.
81+ ENV CCACHE_DIR="/.ccache"
82+ RUN mkdir $CCACHE_DIR && chmod -R 777 $CCACHE_DIR
83+
7984# LibrePCB's unittests expect that there is a USERNAME environment variable
8085ENV USERNAME="root"
You can’t perform that action at this time.
0 commit comments