Skip to content

Commit 7093f99

Browse files
authored
Merge pull request #2218 from cdr/whoami-c324
Remove unnecessary whoami
2 parents 14287df + bca1bcf commit 7093f99

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ The install script will print out how to run and start using code-server.
4343
Docs on the install script, manual installation and docker image are at [./doc/install.md](./doc/install.md).
4444

4545
### Alpha Program 🐣
46+
4647
We're working on a cloud platform to make deploying and managing code-server easier. If you don't want to worry about
4748

48-
* TLS
49-
* Authentication
50-
* Port Forwarding
49+
- TLS
50+
- Authentication
51+
- Port Forwarding
5152

5253
consider [joining our alpha program](https://codercom.typeform.com/to/U4IKyv0W).
5354

ci/release-image/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@ EXPOSE 8080
4343
# the uid will remain the same. note: only relevant if -u isn't passed to
4444
# docker-run.
4545
USER 1000
46+
ENV USER=coder
4647
WORKDIR /home/coder
4748
ENTRYPOINT ["/usr/bin/entrypoint.sh", "--bind-addr", "0.0.0.0:8080", "."]

ci/release-image/entrypoint.sh

-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#!/bin/sh
22
set -eu
33

4-
# This isn't set by default.
5-
USER="$(whoami)"
6-
export USER
7-
84
if [ "${DOCKER_USER-}" ] && [ "$DOCKER_USER" != "$USER" ]; then
95
echo "$DOCKER_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
106
# Unfortunately we cannot change $HOME as we cannot move any bind mounts

0 commit comments

Comments
 (0)