From 7761ed423f86308928d7a0cdc10380dbc3260e28 Mon Sep 17 00:00:00 2001 From: z4yx Date: Mon, 25 May 2020 15:31:01 +0800 Subject: [PATCH] adduser before chown --- dockerfiles/julia/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockerfiles/julia/Dockerfile b/dockerfiles/julia/Dockerfile index 8450d60..e352e98 100644 --- a/dockerfiles/julia/Dockerfile +++ b/dockerfiles/julia/Dockerfile @@ -27,7 +27,7 @@ RUN jill install 1.4 --confirm # The API is likely to be changed in the future, so we fix the version here for stability consideration RUN julia -e 'using Pkg; pkg"add https://github.com/johnnychen94/StorageServer.jl#v0.1.0-beta.1"' -RUN chown -R 2000 /tmp/julia/ +RUN adduser --gecos '' --uid 2000 --disabled-password tunasync && chown -R tunasync /tmp/julia/ WORKDIR /julia CMD /bin/bash