-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make a user 'vscode' in Docker as UID 1000
Signed-off-by: Tada, Tadashi <t@tdtds.jp>
- Loading branch information
Showing
1 changed file
with
9 additions
and
2 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 |
---|---|---|
@@ -1,8 +1,15 @@ | ||
FROM ruby:2 | ||
LABEL maintainer "@tdtds <t@tdtds.jp>" | ||
|
||
RUN apt update && apt install -y apt-utils libidn11-dev sqlite3 libsqlite3-dev | ||
RUN mkdir -p /workspace | ||
ENV USER vscode | ||
RUN apt update && apt install -y apt-utils libidn11-dev sqlite3 libsqlite3-dev && \ | ||
useradd -m -u 1000 $USER && \ | ||
chsh -s /bin/bash $USER && \ | ||
echo 'git config unset core.sshCommand' >> /home/$USER/.bashrc && \ | ||
echo 'git config unset core.editor' >> /home/$USER/.bashrc && \ | ||
echo './.devcontainer/setup-app.sh' >> /home/$USER/.bashrc && \ | ||
mkdir -p /workspace | ||
USER $USER | ||
WORKDIR /workspace | ||
EXPOSE 9292 | ||
CMD "/workspace/.devcontainer/run-app.sh" |