add a user with uid 2000

This commit is contained in:
z4yx 2020-08-09 22:55:40 +08:00
parent dc6bfb4612
commit eca5de8976

View File

@ -10,7 +10,8 @@ LABEL maintainer="Johnny Chen <johnnychen94@hotmail.com>"
ENV JULIA_DEPOT_PATH="/opt/julia"
RUN julia -e 'using Pkg; pkg"add https://github.com/johnnychen94/StorageMirrorServer.jl#v0.1.1-rc3"' && \
RUN adduser --uid 2000 tunasync && \
julia -e 'using Pkg; pkg"add https://github.com/johnnychen94/StorageMirrorServer.jl#v0.1.1-rc3"' && \
chmod a+rx -R $JULIA_DEPOT_PATH
COPY dockerfiles/julia/startup.jl /usr/local/julia/etc/julia/startup.jl