Skip to content

Commit

Permalink
Set GID to 1000 as id's beyond 65k don't work in user mode
Browse files Browse the repository at this point in the history
  • Loading branch information
antarcticrainforest committed Mar 23, 2024
1 parent 5a0c9fd commit 77f5859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ ARG CONDA_ENV_DIR
ARG FREVA_WEB_DIR

RUN set -e && \
groupadd -r -g 200855 freva && \
adduser --uid 1000 --gid 200855 --gecos "Freva user" \
groupadd -r -g 1000 freva && \
adduser --uid 1000 --gid 1000 --gecos "Freva user" \
--shell /bin/bash --disabled-password freva --home ${FREVA_WEB_DIR} &&\
mkdir -p ${CONDA_ENV_DIR} && chown -R freva:freva $CONDA_ENV_DIR
WORKDIR ${FREVA_WEB_DIR}
Expand Down

0 comments on commit 77f5859

Please sign in to comment.