Spaces:
Paused
Paused
| FROM ubuntu:latest | |
| RUN apt update -y && apt install --no-install-recommends -y openssh-client git gcc wget gzip unzip busybox sudo dropbear fakeroot curl lsof net-tools python3 python3-pip nginx | |
| RUN busybox --install /bin | |
| RUN sed -i '/^ubuntu/d' /etc/shadow && echo "ubuntu::19879:0:99999:7:::" >> /etc/shadow && chmod 644 /etc/shadow | |
| RUN chmod 777 /etc/dropbear/* && chmod 777 -R /var/lib/nginx | |
| USER ubuntu | |
| WORKDIR /home/ubuntu | |
| ENV GLIDER_VER="0.16.3" | |
| RUN wget -nv https://github.com/nadoo/glider/releases/download/v${GLIDER_VER}/glider_${GLIDER_VER}_linux_amd64.tar.gz &&\ | |
| tar -xzvf glider_${GLIDER_VER}_linux_amd64.tar.gz --strip-components=1 glider_${GLIDER_VER}_linux_amd64/glider &&\ | |
| chmod 755 glider && rm glider_${GLIDER_VER}_linux_amd64.tar.gz | |
| COPY . . | |
| CMD ["bash","startup.sh"] |