Skip to content

Commit

Permalink
chore: Update Dockerfile.server to install sudo package
Browse files Browse the repository at this point in the history
  • Loading branch information
damonto committed May 8, 2024
1 parent ceb9e2b commit ff2dc1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.server
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV SSH_PUBLIC_KEY="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAYtTh3Z4dllW6CjUXb5hzRR

RUN set -xe \
&& apt-get update \
&& apt-get install -y --no-install-recommends supervisor openssh-server htop \
&& apt-get install -y --no-install-recommends supervisor openssh-server sudo \
&& apt-get clean \
&& mkdir -p var/run/sshd \
&& sed -i 's/^#\(PermitRootLogin\) .*/\1 yes/' /etc/ssh/sshd_config \
Expand Down
8 changes: 4 additions & 4 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ apt-get update -y && apt-get install -y unzip cmake pkg-config libcurl4-openssl-

# Get the latest release version
get_latest_release() {
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' | # Pluck JSON value
sed 's/v//' # Remove the "v" from the version number
curl --silent "https://api.github.com/repos/$1/releases/latest" |
grep '"tag_name":' |
sed -E 's/.*"([^"]+)".*/\1/' |
sed 's/v//'
}

DST_DIR="/opt/estkme-cloud"
Expand Down

0 comments on commit ff2dc1d

Please sign in to comment.