Skip to content

Commit

Permalink
fix: user creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Youen Péron committed Sep 25, 2023
1 parent 94d157c commit b4e6784
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion src/lino/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
FROM cgifr/lino-toolbox:${templateOption:imageVariant}
FROM cgifr/lino-toolbox:${templateOption:imageVariant}-debian
ARG USERNAME=lino
ARG USER_UID=1000
ARG USER_GID=$USER_UID


USER "root"

# Create the user lino
RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME

USER $USERNAME

CMD [ "sleep", "infinity" ]

2 changes: 1 addition & 1 deletion src/lino/devcontainer-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"type": "string",
"description": "version of the lino's toolbox image",
"proposals": [
"v1.3.0 # (lino:V2.4.0, pimo:v1.19.0)"
"v1.3.0"
],
"default": "v1.3.0"
}
Expand Down

0 comments on commit b4e6784

Please sign in to comment.