This repository has been archived by the owner on Oct 5, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: James Drummond <james.m.drummond@gmail.com>
- Loading branch information
1 parent
b9f1f01
commit 0060616
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM theiaide/theia | ||
COPY entrypoint /home/theia | ||
RUN chgrp -R 0 /home/theia && \ | ||
chmod a+x /home/theia/entrypoint && \ | ||
chmod -R g=u /home/theia && \ | ||
chmod g=u /etc/passwd | ||
USER 10001 | ||
ENTRYPOINT ["/home/theia/entrypoint"] | ||
CMD yarn theia start /home/project --hostname 0.0.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
export HOME=/home/theia | ||
export USER_ID=$(id -u) | ||
export GROUP_ID=$(id -g) | ||
if [ -w /etc/passwd ]; then | ||
echo "default:x:$(id -u):$(id -g):default user:${HOME}:/sbin/nologin" >> /etc/passwd | ||
fi | ||
exec "$@" |