From fb2f80b0f9127ed0257f34917172242edec78dc3 Mon Sep 17 00:00:00 2001 From: ifilot Date: Tue, 23 Apr 2024 22:17:57 +0200 Subject: [PATCH] Adding user --- docker/deploy.Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docker/deploy.Dockerfile b/docker/deploy.Dockerfile index 1d4e3f4..6696bd0 100644 --- a/docker/deploy.Dockerfile +++ b/docker/deploy.Dockerfile @@ -12,4 +12,13 @@ RUN mkdir /tmp/build WORKDIR /tmp/build RUN cmake ../src -DMOD_CUDA=1 RUN make -j -RUN make install \ No newline at end of file +RUN make install + +# clean up installation files +RUN rm -rf /tmp/src /tmp/build + +# create `bramble` user +RUN useradd -ms /bin/bash bramble +USER bramble +WORKDIR /home/bramble +RUN which bramblecuda \ No newline at end of file