Fix go installs on arm builds

This commit is contained in:
Dane Everitt 2022-02-13 13:20:26 -05:00
parent 67a8ec9ae4
commit 2ad36295f7
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ fi
cd /var/www/html || exit 1
sudo chown -R www-data:pterodactyl storage
sudo chmod -R 775 storage/* bootstrap/cache
sudo chmod -R 777 storage/* bootstrap/cache
if [ $# -gt 0 ]; then
sudo su -c "/bin/bash"

View File

@ -24,10 +24,10 @@ RUN apt -y update \
docker-ce \
docker-ce-cli \
containerd.io \
&& curl -OL https://go.dev/dl/go1.17.6.linux-amd64.tar.gz \
&& tar xvf go1.17.6.linux-amd64.tar.gz -C /usr/local \
&& curl -OL "https://go.dev/dl/go1.17.6.linux-$(dpkg --print-architecture).tar.gz" \
&& tar xvf "go1.17.6.linux-$(dpkg --print-architecture).tar.gz" -C /usr/local \
&& chown -R root:root /usr/local/go \
&& rm -rf go1.17.6.linux-amd64.tar.gz \
&& rm -rf go*.gz \
&& /usr/local/go/bin/go get github.com/go-delve/delve/cmd/dlv \
&& usermod -aG docker root \
&& echo "export PATH=\$PATH:/usr/local/go/bin" >> /etc/bash.bashrc